Welcome to my super simple pokedex using React and JSON Server :)
This project uses React for the frontend and JSON Server for a super simple example backend
First, open your favorite editor and clone the repo
You'll need two terminals open
Navigate to the project folder in your terminal and run npm install to download all the needed dependencies
Then run npm start to get the React App running on http://localhost:3000
In the other terminal, you can do npx json-server --watch data/db.json --port 9000
That will run JSON Server on port 9000 and have it look at the db.json file in the data folder
After that you should be good to go!
If you want to edit the styles, I put all of them in a styles folder and used Sass
You'll need another terminal open, and you can run sass --watch src/styles/scss:src/styles/css
I wrapped the useFetch hook in a 5 second setTimeout so that you can see the little charmander loading gif. Was it necessary? Absolutely.