API/api.medcify.app
2022-09-26 11:41:44 +05:30
..
auth final 2022-09-26 11:41:44 +05:30
config final 2022-09-26 11:41:44 +05:30
helper final 2022-09-26 11:41:44 +05:30
migrations final 2022-09-26 11:41:44 +05:30
models final 2022-09-26 11:41:44 +05:30
node_modules final 2022-09-26 11:41:44 +05:30
routes final 2022-09-26 11:41:44 +05:30
sslcert final 2022-09-26 11:41:44 +05:30
uploads final 2022-09-26 11:41:44 +05:30
.env final 2022-09-26 11:41:44 +05:30
index.js final 2022-09-26 11:41:44 +05:30
package-lock.json final 2022-09-26 11:41:44 +05:30
package.json final 2022-09-26 11:41:44 +05:30
readme final 2022-09-26 11:41:44 +05:30
spotpills.sql final 2022-09-26 11:41:44 +05:30
zindex.js final 2022-09-26 11:41:44 +05:30

// 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