Healme Backend is an Express.js API for a healthcare platform that connects patients, clinics, pharmacies, and business partners.
It provides core services for user management, appointments, prescriptions, search, subscriptions, reviews, media upload, mapping, and chatbot support.
Healme Backend powers a digital care ecosystem focused on easier healthcare access for patients and operational tools for clinics and pharmacies.
- User registration, login, profile, address, and password flows
- Patient records and patient prescription history
- Clinic and pharmacy listing, details, and search
- Pharmacy medicine inventory management
- Appointment booking and diagnosis workflow
- Prescription creation, update, and order handling
- Area lookup for province, district, ward, and address data
- Business profile and subscription management
- Review management for healthcare businesses
- Media upload and management with Azure Blob Storage
- Chatbot and map integration endpoints
- Node.js
- Express.js
- MySQL
- Pug
- JWT authentication
- Azure Blob Storage
app.js- Express app setup and route registrationbin/www- HTTP server bootstraproutes/- API route handlersmodels/- database and validation helpersdb_scripts/- database schema and seed scriptsviews/- Pug templates for basic rendered pages
- Node.js 18+ recommended
- MySQL database
npm installCreate a .env file in the project root and add:
PORT=3001
OPENAI_API_KEY=your_openai_key
MAP_API_KEY=your_map_api_key
AZURE_STORAGE_CONNECTION_STRING=your_azure_storage_connection_string
API_KEY=your_zoom_api_key
API_SECRET=your_zoom_api_secret
CLIENT_ID=your_zoom_client_id
CLIENT_SECRET=your_zoom_client_secret
ACCOUNT_ID=your_zoom_account_idUpdate database connection settings in models/dbconfig.js, then run SQL scripts from db_scripts/ to initialize schema and data.
npm startDefault local URL:
http://localhost:3001
Main route groups:
/users/patient/clinic/pharmacy/business/area/appt/medicine/schedule/prescription/search/map/chatbot/media/subscription/review
npm startCurrent package.json only defines a start script.