/healthcare-server

Healthcare Server. DB: Postgres, ORM: Prisma, Express.js, Typescript, Web RTC

Primary LanguageTypeScript

HealthCare Server

Welcome to the backend repository for HealthCare.

This repository contains the backend codebase responsible for handling server-side logic, database management, and communication between different system components.

Table of Contents

Technologies Used

  • Node.js: Runtime environment for executing JavaScript code.
  • Express.js: Web application framework for building APIs and handling HTTP requests.
  • Prisma: ORM (Object-Relational Mapping) tool for database management.
  • PostgreSQL: Relational database management system.
  • WEB RTC (Agora.io): Third-party service for real-time communication between users.
  • JWT: JSON Web Tokens for secure authentication and authorization.
  • bcrypt: Library for hashing passwords.
  • nodemailer: Library for sending email notifications.

Features

  • User Authentication and Authorization: Secure authentication using JWT tokens.
  • User Management: CRUD operations for managing user accounts (Admin, Doctor, Patient).
  • Appointment Management: Create, update, and delete appointments.
  • Real-time Communication: Integration with WEB RTC for real-time communication between doctors and patients.
  • Prescription Management: Create, update, and delete prescriptions.
  • Email Notifications: Send email notifications for appointment confirmations, invoices, and prescription delivery.

Installation and Setup

  1. Clone this repository: git clone <repository_url>
  2. Install dependencies: npm install
  3. Set up the environment variables by creating a .env file and filling in the required variables based on the provided .env.example file.
  4. Run the database migrations: npx prisma migrate dev
  5. Start the server: npm run dev