API REST NodeJs avec MySql. Différentes opérations CRUD.
NodeJs doit être installé : https://nodejs.org/en/download/
Pour la base de données, j'utilise MySql & MAMP : https://www.mamp.info/en/downloads/
//on local
- git clone https://github.com/Dramane-dev/API-REST-NodeJs-Express-with-MySql.git
- cd api-mysql
- npm i
- npm i express
- npm i morgan
- npm i mysql
- npm i body-parser
- npm start
link to download postman : https://www.postman.com/downloads/
Les requêtes à utiliser sur postman :
- GET
(http://localhost:3000/api/v1/members) - GET
(http://localhost:3000/api/v1/members/1) - POST
(http://localhost:3000/api/v1/members) - PUT
(http://localhost:3000/api/v1/members/2) - DELETE
(http://localhost:3000/api/v1/members/1)