The initial purpose of the application is to consume the Marvel API through requests made with Axios.
List all Comics sorted from newest to oldest.
Give the option to search by character, and return the comics respectively.
- Listing 100 comics per page, each page is a new request.
- By clicking on "Previous" or "Next" Page, useRef Hook was used to scroll to the top of the page.
- All pagination was done using useContext Hook, to facilitate information sharing between components.
- The entire styling of the application was through styled-components.
- Pagination with react-router-dom.
- Return the Comic Pictures, instead of just the list with the names.
- Mobile Responsive.
- Handle error with try/catch on axios requests.
Make sure the folder of your terminal and:
git clone https://github.com/oqnunes/marvel-app.git
Then:
cd marvel-app
And now make sure you are using Node and Yarn, and run to install all used modules:
yarn
Finally you can start the project with:
yarn dev
Open http://localhost:3000 to view it in the browser and enjoy it!