Skip to content

This is a simple application to show my skills with ReactJS, TypeStript, Axios and others...

Notifications You must be signed in to change notification settings

oqnunes/marvel-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marvel App - ReactJS and TypeScript

The initial purpose of the application is to consume the Marvel API through requests made with Axios.

Objective 1

List all Comics sorted from newest to oldest.

Objective 2

Give the option to search by character, and return the comics respectively.


What was Done

  • 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.

What's to come:

  • 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.

How try it

1. You can Visit the Demo

Visit Demo

2. You can clone to learn.

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!

About

This is a simple application to show my skills with ReactJS, TypeStript, Axios and others...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published