Psychiatrist registration him/her self and his patients data in it. complete backend project.
Server: Node, Express
Dependencies: Mongoose, JWT, validator, nodemon, dotenv, cookie-parser
POST http://localhost:8080/api/v1/register
POST http://localhost:8080/api/v1/patient/new
POST http://localhost:8080/api/v1/patient/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of patient to update |
GET http://localhost:8080/api/v1/pyschiatrists/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of Psychiatrist fetch the data |
To run this project, you will need to add the following environment variables to your .env file
PORT
DB_URI
COOKIE_EXPIRE
JWT_SECRET
JWT_EXPIRESIN
Clone the project
git clone https://github.com/gopimudumal99/gopimudumal_NodejsTask.git
Go to the project directory
cd gopimudumal_NodejsTask
Install dependencies
npm install
Start the server
npm run dev