Skip to content

m-naeem66622/health-clinic-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Health Clinic API

This is a RESTful API for a health clinic application.

Setup

  1. Clone the repository:

    git clone https://github.com/your-username/health-clinic-api.git
  2. Install the dependencies:

    npm install
  3. 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)
    
  4. Start the server:

    npm start

API Endpoints

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published