Fakultas Ilmu Komputer UI

Commit 9adbbe63 authored by Azhar Difa Arnanda's avatar Azhar Difa Arnanda
Browse files

Merubah readme.md

parent df282e5c
Pipeline #67987 passed with stages
in 2 minutes and 17 seconds
# Home Industry API
[![pipeline status](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-backend/badges/master/pipeline.svg)](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-backend/commits/master)
[![coverage report](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-backend/badges/master/coverage.svg)](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-backend/commits/master)
[![pipeline status](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/sosial/pilar/pilar-backend/badges/dev/pipeline.svg)](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/sosial/pilar/pilar-backend/-/commits/dev)
[![coverage report](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/sosial/pilar/pilar-backend/badges/dev/coverage.svg)](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/sosial/pilar/pilar-backend/-/commits/dev)
## Table of Contents
- [Environment Variables](#environment-variables)
......@@ -80,6 +79,7 @@ Key | Required | Example
## Local Configuration
- Create environment variables in root folder (change as needed)
Filename: `.env`
```bash
DATABASE_HOST=db
......@@ -91,6 +91,10 @@ Key | Required | Example
SECRET_KEY=7&s33ax$lxxzti1)0y=8#tu!$7bdy)p$1@kn06tp&8x8i9#h2u
ALLOWED_HOST=0.0.0.0
```
- Change `wait-for-it.sh` permission
```bash
$ chmod +x wait-for-it.sh
```
- Run docker-compose
```bash
$ sudo docker-compose up
......@@ -103,10 +107,18 @@ Key | Required | Example
```bash
$ docker exec -it <web-container-id> python manage.py collectstatic --noinput
```
- Create superuser
```bash
$ docker exec -it <web-container-id> python manage.py createsuperuser
```
- Create or update API configuration in database
```bash
$ docker exec -it <web-container-id> python manage.py createorupdateapiconfig
```
- Generate dummy data from seeders for database
```bash
$ docker exec -it <web-container-id> python manage.py createdummydata
```
- Access database
```bash
$ docker exec -it <postgres-container-id> psql -U postgres -d home_industry -h db
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment