🎸Try the app ⭐️
- Allow the user to search for an artist (Using this API. for app_id just use any random number)
- Upon a good search result:
- Display artist meta-data: name, image
- Display a list of events that are related to the artist
- Display the user’s “favorite” events
- Navigate to a new page showing:
- Event meta data
- Event venue information
- Special offers related to event
- Add to favorites button
- Display the venue location on a map
- Add this event to the favorites list
- Persist the favorites section, so that when the user refreshes he will see it again
- Styling with Material-ui
- The app is responsive !
-
Framework: React. Global state management : Redux-toolkit
-
Manage async API calls with redux-toolkit 'createAsyncThunk'
-
Use Data normalization pattern of { ids: [], entities: {}} with redux-toolkit 'createEntityAdapter'
-
Material-ui components composition
- Read about caveats with inline function as an argument for the component prop here
- Example: I used react-router-dom 'Navlink' componet as replacing component property with 'Button' , 'ListItem', 'CardActionArea'
-
Application flow is controled by URL. Meaning, you can fetch info by simply typing the correct url. e.g. "localhost:3000/beyonce"
-
Performance:
- Built in selector function memoization with 'createEntityAdapter'
- Use 'memo' to memoize components when needed
- When possible, 'store' data is used instead of new fetch in cases where artist has not changed (e.g. back to artist page from event page)
- Menu buttons change shape when screen get smaller
- Menu buttons turn to just icons in mobile
- Search field size and position adjust to the change of screen size
- Artist image size changes (smaller) in mobile
- 'Ticket' button is not displayed in mobile
- Show badge number of total exiting favorite items
- Home button
- Remove favorites button in favorites list
- Go to event page from favorites list
- Gradient color buttons style change on hover
- Display an animated placeholder of artist image before it gets loaded
- Hover my name...🤩
- Beating heart as favorite, in event page
- Display an animated placeholder of artist image before it gets loaded
-
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.