Skip to content

Test React.js app using PokeAPI and MobX state manager

Notifications You must be signed in to change notification settings

dstuff/poke-dex-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App Notes

You can try app Pokedex App

General description

Pokedex app was built using standard create-react-app and some improvements for using MobX decorators. This goal has been achieved using react-app-rewired and customize-cra packages with @babel/plugin-proposal-decorators as well.

Project linted using standard ESLint configuration.

Project structure

All app's components placed into components directory into separate sub-directories, for example components/list-item. Which contains list-item.js, list-item.css and index.js.

State management

MobX was defined as a state management by task's conditions, and isolated into separate directory state.
It could be separated by logic, for example Pokemon and Pagination stores. But for that small application it's not necessary.

Also, in the future development, in case some additional API requests will be added, we can isolate api as a separate service (file) and import into stores that need it.

Utils directory

Contains some helper function and services, such as making the first letter in the word/phrase/sentence capital. Or debounce function to prevent loading to the API server and so on.

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 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.
Your app is ready to be deployed!

About

Test React.js app using PokeAPI and MobX state manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published