Skip to content

betoxd40/marvel-api-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • This project was bootstrapped with Create React App.
  • The project is using Material UI (UI components, Grids) Material UI
  • The project is using Redux (State magnament) Redux
  • The project is using Redux-Saga (Middleware) Redux-Saga
  • The project is using Jest (Unit testing) Jest

Get started

Create an env file on the root of your directory to set the following env variables:

API_URL = YOUR_API_URL
API_KEY = YOUR_API_KEY

If you are console lover you could use:

$ export API_URL = YOUR_API_URL
$ export API_KEY = YOUR_API_KEY

Notes: Don't worry i'll upload the .env file is up on github, so you don't need to set this steps.

Available Scripts

In the project directory, you can run:

npm start

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.

npm test

Launches the test runner in the interactive watch mode.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Notes

  • All the components are covered by test, they can be improved.
  • I'm following component - container pattern.
  • For redux, the application doesn't have much interaction between the components, so i followed duck pattern.
  • The application could have a pagination, the backend have a good api response to make it done.

About

React - Redux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors