Let's talk about Pokemons with NodeJS and React.
$ cd server
$ npm install
$ cd client
$ npm install
$ cd server
$ npm run seed
$ cd server
$ npm run server <port>
$ 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
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 |