Skip to content

Commit 467a85e

Browse files
JoeJasinskialysivji
authored andcommitted
Updated readme and makefile (#10)
1 parent 15dd093 commit 467a85e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ test_fast: ## Can pass in parameters using p=''
8080
load_talks: up
8181
docker-compose exec app flask load_talks
8282

83+
superuser: up
84+
docker-compose exec app flask createsuperuser $(username) $(password)
85+
8386

8487
# Flake 8
8588
# options: http://flake8.pycqa.org/en/latest/user/options.html

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ make migration m='migration message'
2424
#### Run
2525

2626
```console
27+
make up
2728
make migrate
28-
make migrate_back
29+
make load_talks
30+
make superuser username=myuser password=insecure
2931
```
3032

3133
### Makefile Commands
@@ -41,6 +43,7 @@ Usage:
4143
make down stops service and removes containers
4244
4345
make migrate run migrations
46+
make migrate_back run reverse migrations
4447
make test run tests
4548
make test_cov run tests with coverage.py
4649
make test_fast run tests without migrations
@@ -51,6 +54,7 @@ Usage:
5154
make shell connect to app container in new bash shell
5255
make dbshell connect to postgres inside db container
5356
make load_talks Load Talk data into Talks table from data/talks_db_dump.csv
57+
make superuser username=myuser password=insecure
5458
```
5559

5660
## Overriding Default Docker-Compose Settings

0 commit comments

Comments
 (0)