this api does a simple CRUD operations on a single table mysql Database .
this is build on top off fastest validator and sequelize ORM
the api use different HTTP methods ( GET, POST, PUT, and DELETE )
to make this work correctly you need to :
- you need to have node js
- you need to have mysql installed in your machine ( install xampp if you don't have )
- create a new empty database and call it 'test'
Clone this repository:
$ git clone https://github.com/juangsabit/express-generator-api.git
Install dependencies:
$ npm install
Migrate using sequelize:
$ npx sequelize db:migrate
Listening and serving HTTP on :3000
GET /products
--> get all productsGET /products/:id
--> get single productPOST /products
--> create new productPUT /products
--> update productDELETE /products/:id
--> delete product
Thank you..~