Skip to content

neelamnagarajgithub/Vitacure-Server

Repository files navigation

HealConnect

This is the Web Service for a website Heal Connect. Heal Connect is a website that connects the health care professionals to the people who are in need of a health care.

  • this is the backend code of the the website HealConnect

  • This Webservice has a fully functional REST api that is build using the MVC architecture which also contains the advanced API features like Advanced Filtering , sorting

  • In this payments are integrated using stripe(a third party payment gateway) which is used by the users for hiring the health care professionals

  • In this we also included the Phone Number authentication which is enabled to verify users.

  • this webservice is depolyed on Render

API Reference

RESTful API of Nurses

Get all nurses

  GET /api/nurses

Get Nurse By Id

/api/nurses/${id}

Recieving data of nurse from frontend after the Registration of Nurse

  POST /api/nurses
 {
        "name": "",
        "age": ,
        "sex": "",
        "address": {
            "street": "",
            "city": "",
            "state": "",
            "zip": ""
        },
        "email": "",
        "aadharCard": "",
        "previousWorkExperience": "",
        "typeofcare":"",
        "subcare":[""],
        "cv": "Link to CV or CV data 1",
        "education": [
            {
                "collegeName": "",
                "yearOfPassing": 
            }
        ],
        "stateCouncil": "",
        "councilRegistrationNumber": ""
}

Editing the Data of Nurse

  PATCH /api/nurses/${id}

Deletion of Nurse Profile

  DELETE /api/nurses/

Twilio API Reference

Signup for Users

  POST /api/user/signup
{
    "username":"",
    "number":""
}

Signup/ Verify

  POST /api/user/signup/verify
{
    "otp":""
}

Signin For Users

  POST /api/user/signin
{
    "number":""
}

Signin / Verify

  POST /api/user/signin/verify
{
    "otp":""
}

Stripe API

  POST /api/create-checkout-session
{
"nurse":{
   "_id": "",
    "name": ""
}
}

Authors

Deployment

The project is Depoyed on Render.

https://healconnectserver.onrender.com/

To run this project locally ,run the following command in your terminal

  npm start

Releases

No releases published

Packages

No packages published