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.
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT Authentication
- bcrypt
- REST API
- 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
hiDoctor-node/
│
├── controllers/
├── models/
├── routes/
├── middlewares/
├── config/
├── utils/
├── app.js
├── server.js
├── package.json
└── .envClone the repository:
git clone https://github.com/Keyvan1369/hiDoctor-node.gitGo to project directory:
cd hiDoctor-nodeInstall dependencies:
npm installCreate a .env file in the root directory:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_keyDevelopment mode:
npm run devProduction mode:
npm startPOST /api/auth/registerPOST /api/auth/login
GET /api/doctorsPOST /api/doctorsPUT /api/doctors/:idDELETE /api/doctors/:id
GET /api/appointmentsPOST /api/appointments
GET /api/usersGET /api/users/:id
- Password hashing using bcrypt
- JWT-based authentication
- Protected routes
- Secure environment configuration
- Video Consultation Integration
- Online Payment System
- Medical Reports Upload
- Notifications & Email Services
- API Documentation with Swagger
- Unit & Integration Testing
Developed by Keyvan
GitHub: https://github.com/Keyvan1369
This project is licensed under the MIT License.