Sevayu Backend is a powerful and innovative platform that aims to solve the problem of hospitals lacking individual websites. Our platform provides a uniform and centralized solution for all hospitals, enabling them to register and showcase their facilities, information, and appointment services in one place – the Sevayu website. Additionally, users can take advantage of the Sevayu Android app to search for nearby hospitals, make inquiries, access hospital details, and book appointments seamlessly.
-
Hospital Registration: Hospitals can easily register on the Sevayu platform and create their profiles, showcasing all the essential information.
-
Facilities and Services: Hospitals can list all the facilities, services, and departments they offer, making it convenient for users to find relevant information.
-
Real-time Consultation: We integrate Firebase and socket.io to enable real-time consultations, enhancing communication between doctors and patients.
-
Search Functionality: The Sevayu app provides a robust search feature that allows users to find nearby hospitals based on their preferences.
-
Appointment Booking: Users can book appointments with their desired doctors or departments through the app, ensuring a seamless experience.
-
Blood Bank Information: Hospitals can update and manage their blood bank information through the platform, facilitating efficient blood donations.
-
Lab Test Details: Hospitals can showcase the lab tests they offer, helping users understand available medical services better.
- Node.js
- Express.js
- MongoDB
- socket.io
- Firebase (Real-time Consultation)
- Redis (Caching for Faster Data Retrieval)
- dotenv (Environment Configuration)
- Mocha and Chai (API Unit Testing)
Link of Deployed api : www.sevayu.live
Follow these steps to get the Sevayu Backend up and running on your local machine:
-
Clone the repository:
git clone https://github.com/your-username/sevayu-backend.git
-
Navigate to the project directory:
cd sevayu-backend
-
Install dependencies:
npm install
-
Set up the environment variables by creating a
config.env
file in config folder (refer to.env.example
). -
Run the ESLint test to ensure code quality:
npm run lint-check
-
Execute the API unit tests:
npm test
-
Start the server:
npm start
-
Access the API at
http://localhost:5000
.
The complete api endpoints and documentation can be found at : Documentation of API (ALL Endpoints result)
- Hospital:
/api/hospital
- Hospital Authentication:
/api/auth/hospital
- Doctor:
/api/doctor
- Blood Bank:
/api/bloodbank
- Lab Test:
/api/labtest
- User Authentication:
/api/auth/user
- Search Hospitals:
/api/search
(Pass the search text as a query parameter)
We welcome contributions from the community to improve Sevayu Backend. If you find any issues or have suggestions, please feel free to create a pull request or raise an issue in the repository.
Yogesh Saini