47 lines
997 B
Plaintext
47 lines
997 B
Plaintext
// INSTALLLATION
|
|
=> Initiate NPM
|
|
=> Install express for local PORT
|
|
=> Install nodemon to run our application
|
|
=> install body-parser in order to get access to the post data,
|
|
which allows express to read the body and then parse that into a Json object that we can understand
|
|
|
|
=> Install MySQL2
|
|
=> Install sequelize cli and init sequelize
|
|
=> Include .env file
|
|
=> Install dotenv and import in index
|
|
=> Install multer for image upload
|
|
|
|
------------------------------
|
|
API LIST
|
|
------------------------------
|
|
|
|
1. USERS - CRUD
|
|
GET - LIST -
|
|
POST- ADD -
|
|
GET - VIEW -
|
|
PUT - EDIT -
|
|
PUT - DEL -
|
|
|
|
2. MEDICINE - CRUD
|
|
GET - LIST -
|
|
POST- ADD -
|
|
GET - VIEW -
|
|
PUT - EDIT -
|
|
PUT - DEL -
|
|
|
|
3. COMPANY - CRUD
|
|
GET - LIST -
|
|
POST- ADD -
|
|
GET - VIEW -
|
|
PUT - EDIT -
|
|
PUT - DEL -
|
|
|
|
4. SUBSCRIPTION - CRUD
|
|
GET - LIST -
|
|
POST- ADD -
|
|
GET - VIEW -
|
|
PUT - EDIT -
|
|
PUT - DEL -
|
|
|
|
5. LOGIN
|
|
POST- LOGIN |