MediCare Connect Backend is a secure RESTful API built with Node.js, Express.js, MongoDB, and JWT Authentication. It powers the MediCare Connect healthcare platform by handling authentication, doctor management, appointments, payments, prescriptions, and administrative operations.
Backend API: https://your-backend-url.onrender.com
Server Repository: https://github.com/YOUR_USERNAME/medicare-connect-server
Client Repository: https://github.com/YOUR_USERNAME/medicare-connect-client
- JWT Authentication
- Better Auth Integration
- Google OAuth Login
- Role-Based Authorization
- Doctor Management
- Appointment Management
- Review Management
- Prescription Management
- Stripe Payment Integration
- Payment Webhook
- Admin Management
- Search, Sorting & Pagination
- MongoDB Database
- Secure REST API
- Helmet Security
- Rate Limiter
- CORS Protection
- Environment Variable Support
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT
- Better Auth
- Stripe
- bcryptjs
- Helmet
- Express Rate Limit
- CORS
- dotenv
src/
│
├── config/
├── controllers/
├── middlewares/
├── models/
├── routes/
├── utils/
├── services/
├── app.js
└── server.js
Clone the repository
git clone https://github.com/YOUR_USERNAME/medicare-connect-server.gitInstall dependencies
npm installRun development server
npm run devRun production
npm startCreate a .env file and configure the following:
PORT=5000
NODE_ENV=development
MONGODB_URI=
JWT_SECRET=
JWT_EXPIRES_IN=7d
BETTER_AUTH_SECRET=
BETTER_AUTH_URL=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
CLIENT_URL=- POST
/api/auth/register - POST
/api/auth/login - POST
/api/auth/google
- GET
/api/doctors - GET
/api/doctors/:id - POST
/api/doctors - PATCH
/api/doctors/:id
- GET
/api/appointments - POST
/api/appointments - PATCH
/api/appointments/:id - DELETE
/api/appointments/:id
- GET
/api/reviews - POST
/api/reviews - PATCH
/api/reviews/:id - DELETE
/api/reviews/:id
- GET
/api/prescriptions - POST
/api/prescriptions - PATCH
/api/prescriptions/:id
- POST
/api/payments/create-payment-intent - POST
/api/payments/webhook
- JWT Authentication
- Better Auth
- Google OAuth
- Password Hashing (bcryptjs)
- Helmet
- CORS
- Express Rate Limit
- Protected Routes
- Role-Based Access
- Environment Variables
- Vercel
- Render
- MongoDB Atlas
Developed by YOUR NAME