Skip to content

Patient Tracker is a system for hospitals to manage records of all their patients in one centralised database.

License

Notifications You must be signed in to change notification settings

Raywire/patientTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Codacy Badge

Project: Patient Tracker

Description: Patient Tracker is a system for hospitals to manage records of all their patients in one centralised database.

Getting Started

git clone the repo

Prerequisites

A postgres database is required for development Install pipenv using Homebrew, Linuxbrew or pip

brew install pipenv

Setting up the database with a user who has all privileges

sudo -u postgres psql
postgres=# create database your_database;
postgres=# create user your_username with encrypted password 'your_password';
postgres=# grant all privileges on database your_database to your_username;

Contents of .env file

DEBUG=True
SECRET_KEY='your-secret-key-here'
DATABASE_URL=psql://user:password@127.0.0.1:5432/database_name

Running the app

cd into the patienttracker folder

cd patienttracker/

Run the command to install all requirements from Pipfile.lock

pipenv install

To activate the virtual environment run the command below

pipenv shell

Run the application by starting the server

python manage.py runserver

Running the tests

cd patienttracker/
python manage.py test

In case you do not have permission to create a database run the following command on psql

sudo -u postgres psql
ALTER ROLE your_username CREATEDB;

Running tests with coverage

cd patienttracker/
coverage run --source="." manage.py test
coverage report

Built With

API Endpoints Documentation

API Documentation - Swagger UI

Author

  • Ryan Simiyu

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Patient Tracker is a system for hospitals to manage records of all their patients in one centralised database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages