Fakultas Ilmu Komputer UI

README.md 1.01 KB
Newer Older
1
2
3
4
5
6
# Mobile Apps Monitoring Wabah Tuberkulosis - TBCare

## Overview

This repository contains codebase for TBCare backend system

Dave Nathanael's avatar
Dave Nathanael committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
## How to Run

1. 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=

```

2. Prepare and activate a Python virtual environment

```
virtualenv env
source env/bin/activate
```

3. Install required packages

```
pip install -r requirements.txt
```

4. Do database migrations

```
python manage.py migrate
```

4. Run

```
python manage.py runserver
```


54
55
56
57
58
59
60
61
62
63
64
65
66
## Tech Stack

- Django Rest Framework
- PostgreSQL RDBMS
- Docker (with compose)

## Team Members

- Dave Nathanael
- Irwanto
- Jonathan Christopher J
- Josh Sudung
- Nandhika Prayoga