Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 798 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 798 Bytes

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