PMS is a full stack web application to manage patients and doctors record in a medical facility.
Deployed using Heroku at link.
Built using Flask (backend), React (frontend) and PostgreSQL. Information regarding detailed technical specifications can be found here.
The project's python code follows PEP8 Styling Guide
- Clone this repository and move into the folder.
$ git clone https://github.com/Biswas-N/patient-management-system.git $ cd patient-management-system
- Create a virtual environment using virtualenv (Optional but advised).
$ virtualenv venv
- Activate the newly created virtual environment.
or
# For Windows > venv\Scripts\activate
# For Unix based (MacOS and Ubuntu) $ source venv/bin/activate
- Install the dependencies.
$ pip install -r requirements.txt
- Later, create a file called
.env
in the project root and copy-past the contents of.env.EXAMPLE
into the.env
file.
Note:
.env.EXAMPLE
had bearer token variable which are needed during testing phase
-
Later run migrations to create a SQLite database file locally.
$ python manage.py upgrade
-
Finally, run these commands to start the application locally (uses SQLite, so no need for PostgreSQL config)
# For Windows > set FLASK_APP=pms > flask run
or
# For Unix based (MacOS and Ubuntu) $ export FLASK_APP=pms $ flask run
This web application has two sets of CRUD endpoints to access Doctors and Patients. Detailed information and sample examples can be found here
The application is deployed in Heroku. Thus, the tests are divided into two categories:
Detailed information on how to setup and executes these tests can be found here