Skip to content

lfvperes/vhms

Repository files navigation

Veterinary Hospital Management System

System Design

The system is designed around a central VeterinaryHospital class that manages the core entities of the hospital: Doctor, Patient, and Appointment. This centralized model ensures a single source of truth for the hospital's state and simplifies operations like scheduling.

Below is the UML class diagram that represents the architecture of the system.

VHMS Class Diagram

Creating new apps

Always run:

docker compose run --rm web python manage.py startapp <app_name> backend/<app_name>

Creating and applying migrations

docker compose run --rm web python manage.py makemigrations doctors
docker compose run --rm web python manage.py migrate

Running this project after installation

docker compose up

Running tests

Example for a specific app

If your Docker containers are already up and running, you can execute the test command inside the web container:

docker compose exec web python manage.py test backend.doctors.tests.DoctorModelTest

If Docker is not running, you can start a temporary container to run the test:

docker compose run --rm web python manage.py test backend.doctors.tests.DoctorModelTest

Running all tests for all apps

When Docker is Already Running (Using exec)

docker compose exec web python manage.py test

When Docker is Not Running (Using run)

docker compose run --rm web python manage.py test

About

Veterinary Hospital Mgmt System on Django

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published