tangled
alpha
login
or
join now
kacaii.dev
/
senac-brigade-server
0
fork
atom
wip: currently rewriting the project as a full stack application
tangled.org/kacaii.dev/sigo
gleam
0
fork
atom
overview
issues
1
pulls
pipelines
:memo: add missing descriptions to recipes
kacaii.dev
2 months ago
7e0ede8d
b822c21e
+5
-1
2 changed files
expand all
collapse all
unified
split
.justfiles
docker.just
postgres.just
+1
.justfiles/docker.just
···
9
9
tag_name := "latest"
10
10
username := "kacaii"
11
11
12
12
+
# List available recipes
12
13
default:
13
14
just --list docker
14
15
+4
-1
.justfiles/postgres.just
···
8
8
postgres_db := env("POSTGRES_DB")
9
9
port := "5432"
10
10
11
11
+
# List available recipes
11
12
default:
12
13
just --list db
13
14
14
14
-
# Start the Postgres container in the Background
15
15
+
# Run the DataBase container
15
16
run-database-container:
16
17
{{ docker }} run --rm --name postgres \
17
18
-e POSTGRES_USER={{ postgres_user }} \
···
35
36
clean_users:
36
37
{{ psql }} {{ database_url }} -f priv/sql/clean_users.sql
37
38
39
39
+
# List registered users
38
40
[no-cd]
39
41
list-users:
40
42
{{ psql }} {{ database_url }} -f priv/sql/query/dev_list_user_accounts.sql
41
43
44
44
+
# List registered brigades
42
45
[no-cd]
43
46
list-brigades:
44
47
{{ psql }} {{ database_url }} -f priv/sql/query/dev_list_brigades.sql