Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
pilar
pilar-backend
Commits
7446f6f1
Commit
7446f6f1
authored
Mar 29, 2021
by
Azhar Difa Arnanda
💬
Browse files
Merge branch 'hotfix' into 'dev'
Merubah readme.md See merge request
!6
parents
92450e4b
9adbbe63
Pipeline
#67991
passed with stages
in 2 minutes and 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
README.md
100644 → 100755
View file @
7446f6f1
# Home Industry API
[

](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-backend/commits/master)
[

](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-backend/commits/master)
[

](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/sosial/pilar/pilar-backend/-/commits/dev)
[

](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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment