AdoptAKitten is a school project about making a REST API to adopt poor little kittens !
Contributors : Poch & Maxime !!
- MongoDB
- clone repository
- install dependencies with
npm install
- build app with
npm run build
- duplicate
config/config_sample.json
toconfig/config.json
and set your db infos
- launch MongoDB
- launch server with
npm start
and go tohttp://localhost:3000
- get all kittens : GET
http://localhost:3000/kittens
- get one kitten : GET
http://localhost:3000/kittens/:id
- add a kitten : POST
http://localhost:3000/add
- update a kitten : PUT
http://localhost:3000/kittens/:id
- delete a kitten : DELETE
http://localhost:3000/kittens/:id