Ankur6702 / Ankur_NodejsTask

Deployed URL

Home Page:https://psy-mysql.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJS Task

Tech Stack

Server: Node, Express, MySQL, Clever Cloud and Heroku.

Major libraries: jsonwebtoken, multer.

API Reference

Fetch the count of how many patients are registered for each psychiatrist in a hospital.

  GET /api/fetchDetails

Fetching all the patients in an order for a single psychiatrist after setting Headers.

  GET /api/fetchPatients
Key Value Description
token string Required For authenticating Psychiatrist

Register Patient (Headers required).

  POST /api/registerPatient

Register Psychiatrist.

  POST /api/registerPsy

Installation and Deployment

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

About

Deployed URL

https://psy-mysql.herokuapp.com/


Languages

Language:JavaScript 96.3%Language:HTML 3.5%Language:Procfile 0.1%