This is a RESTful API for a health clinic application.
-
Clone the repository:
git clone https://github.com/your-username/health-clinic-api.git
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add the following variables:PORT=5000 JWT_SECRET=Your Secret key Goes Here MONGODB_URL=mongodb://localhost:27017/health-clininc (replace your atlas connection string if needed)
-
Start the server:
npm start
/patients
: Get all patients/patients/:id
: Get a specific patient/patients
: Create a new patient/patients/:id
: Update a specific patient/patients/:id
: Delete a specific patient