Mobile Apps Monitoring Wabah Tuberkulosis - TBCare
Overview
This repository contains codebase for TBCare backend system
How to Run
- Run an instance of PostgreSQL database. Then set the credentials on a
.env
file at the root directory. For example you can spin a Docker container to run a Postgres DB instance:
docker run -p 5432:5432 -d postgres
# .env
# You can adjust the values with your Postgres instance credentials.
DATABASE_NAME=postgres
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USER=postgres
DATABASE_PASSWORD=
- Prepare and activate a Python virtual environment
virtualenv env
source env/bin/activate
- Install required packages
pip install -r requirements.txt
- Do database migrations
python manage.py migrate
- Run
python manage.py runserver
Tech Stack
- Django Rest Framework
- PostgreSQL RDBMS
- Docker (with compose)
Team Members
- Dave Nathanael
- Irwanto
- Jonathan Christopher J
- Josh Sudung
- Nandhika Prayoga