Skip to content

About

A secure and scalable RESTful backend API for healthcare and medical appointment scheduling built with Node.js, Express.js, MongoDB, and Mongoose.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

hiDoctor Node API

A secure and scalable backend API for a healthcare and medical appointment platform built with Node.js, Express.js, and MongoDB. This project provides RESTful APIs for handling users, authentication, doctors, appointments, and medical services.


Tech Stack

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT Authentication
  • bcrypt
  • REST API

Features

  • User Authentication & Authorization
  • JWT Secure Login System
  • Doctor Management
  • Appointment Scheduling
  • Patient Management
  • RESTful API Architecture
  • MongoDB Database Integration
  • Error Handling Middleware
  • Secure Environment Variables
  • Scalable Backend Structure

📁 Project Structure

hiDoctor-node/
│
├── controllers/
├── models/
├── routes/
├── middlewares/
├── config/
├── utils/
├── app.js
├── server.js
├── package.json
└── .env

Installation

Clone the repository:

git clone https://github.com/Keyvan1369/hiDoctor-node.git

Go to project directory:

cd hiDoctor-node

Install dependencies:

npm install

Environment Variables

Create a .env file in the root directory:

PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key

▶️ Run The Project

Development mode:

npm run dev

Production mode:

npm start

API Endpoints

Authentication

  • POST /api/auth/register
  • POST /api/auth/login

Doctors

  • GET /api/doctors
  • POST /api/doctors
  • PUT /api/doctors/:id
  • DELETE /api/doctors/:id

Appointments

  • GET /api/appointments
  • POST /api/appointments

Users

  • GET /api/users
  • GET /api/users/:id

Security

  • Password hashing using bcrypt
  • JWT-based authentication
  • Protected routes
  • Secure environment configuration

📌 Future Improvements

  • Video Consultation Integration
  • Online Payment System
  • Medical Reports Upload
  • Notifications & Email Services
  • API Documentation with Swagger
  • Unit & Integration Testing

Author

Developed by Keyvan

GitHub: https://github.com/Keyvan1369


License

This project is licensed under the MIT License.

About

A secure and scalable RESTful backend API for healthcare and medical appointment scheduling built with Node.js, Express.js, MongoDB, and Mongoose.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages