Skip to content

Srijanomar3094/hca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup-> HealthCare-Application(HCA) for WhatBytes

Prerequisites

  • Python 3.x installed
  • PostgreSQL installed and running
  • Virtual environment package (optional but recommended)

Setup Instructions

1. Clone the Repository

git clone https://github.com/Srijanomar3094/hca
cd hca

2. Create and Configure .env File

Create a .env file in the project root and add the following credentials:

DB_NAME="your_database_name"
DB_USER="your_database_user"
DB_PASSWORD="your_database_password"
DB_HOST="your_database_host"
DB_PORT="your_database_port"

3. Create and Activate Virtual Environment

python -m venv venv
# Activate virtual environment
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate

4. Install Dependencies

pip install -r requirements.txt

5. Apply Migrations

python manage.py migrate

6. Start the Server

python manage.py runserver

7. Test APIs

Use Postman or any API testing tool to test all defined API endpoints.

  1. Authentication APIs

POST /api/auth/register/

POST /api/auth/login/

  1. Patient Management APIs

POST /api/patients/

GET /api/patients/

GET /api/patients//

PUT /api/patients//

DELETE /api/patients//

  1. Doctor Management APIs

POST /api/doctors/ - Add a new doctor (Authenticated users only).

GET /api/doctors/

GET /api/doctors//

PUT /api/doctors//

DELETE /api/doctors//

  1. Patient-Doctor Mapping APIs

POST /api/mappings/

GET /api/mappings/

GET /api/mappings/<patient_id>/

DELETE /api/mappings//


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages