Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.29 KB

README.md

File metadata and controls

53 lines (43 loc) · 1.29 KB

Pokedex-React-App

Title

Let's talk about Pokemons with NodeJS and React.

Utilisation (step by step)

1. In a first shell, open the server folder.
$ cd server
$ npm install
2. In a second shell, open the client folder.
$ cd client
$ npm install
3. To seed the database :
$ cd server
$ npm run seed
4. To start the server, open the server folder.
$ cd server
$ npm run server <port>
5. To start the client, open the client folder.
$ cd client
$ npm run start

⚠️ If you have an error like: Module not found: Can't resolve 'react-router-dom'.

$ cd client
$ npm install -S react-router-dom

Routes utilisation

Method Route Description
GET /pokemons this should respond with a list of all pokemons.
GET /pokemons/:id this route should display a single pokemon's found on the daily pokedex.json
POST /pokemons/:nom this route should add a new pokemon on the pokedex.
DELETE /pokemons/:id this route should allow you to delete a specific pokemon

Demo

demo