Server: Node, Express, MySQL, Clever Cloud and Heroku.
Major libraries: jsonwebtoken, multer.
GET /api/fetchDetails
GET /api/fetchPatients
Key | Value | Description |
---|---|---|
token |
string |
Required For authenticating Psychiatrist |
POST /api/registerPatient
POST /api/registerPsy
It is already deployed on Heroku. If you want to deploy it locally, then follow the below steps.
To deploy this project locally, first clone the repository.
git clone https://github.com/Ankur6702/Ankur_NodejsTask.git
Install Node modules
npm install
Now enter the connectionURL in db.js and JWT_SECRET in middleware/fetchUser.js and routes/registerPsy.js
Start the server
nodemon index.js