๐Ÿ‘ฉโ€๐Ÿš’ Firefighters API written in Gleam!
gleam

:hammer: add dev tasks

+1
Taskfile.yml
··· 3 3 includes: 4 4 docker: ./taskfiles/DockerTasks.yml 5 5 gleam: ./taskfiles/GleamTasks.yml 6 + dev: ./taskfiles/DevTasks.yml 6 7 7 8 tasks: 8 9 default:
+2
priv/sql/clean_users.sql
··· 1 + delete from public.user_account 2 + where registration != '000';
+39
taskfiles/DevTasks.yml
··· 1 + version: "3" 2 + 3 + tasks: 4 + rebuild-empty: 5 + desc: ๏‰„ Rebuild the database empty 6 + cmds: 7 + - psql $DATABASE_URL -f priv/sql/drop.sql 8 + - psql $DATABASE_URL -f priv/sql/create/tables.sql 9 + - psql $DATABASE_URL -f priv/sql/create/triggers.sql 10 + - psql $DATABASE_URL -f priv/sql/create/functions.sql 11 + - psql $DATABASE_URL -f priv/sql/create/views.sql 12 + 13 + rebuild-dummy: 14 + desc: ๏‰„ Rebuild the database with mock data 15 + cmds: 16 + - task: rebuild-empty 17 + - task: seed 18 + 19 + clean_users: 20 + desc: ๎ฎ Delete all users execpt for the default one 21 + cmd: psql $DATABASE_URL -f priv/sql/clean_users.sql 22 + 23 + list-users: 24 + desc: ๓ฐ€– List all registred users 25 + cmd: psql $DATABASE_URL -f priv/sql/query/dev_list_user_accounts.sql 26 + 27 + list-brigades: 28 + desc: ๓ฐ€– List all registred brigades 29 + cmd: psql $DATABASE_URL -f priv/sql/query/dev_list_brigades.sql 30 + 31 + dummy: 32 + internal: true 33 + desc: ๓ฐšฉ Generate Mock data 34 + cmd: gleam dev -- dummy 35 + 36 + seed: 37 + internal: true 38 + desc: ๎ถง Setup the first admin 39 + cmd: gleam dev -- admin
+1 -1
taskfiles/GleamTasks.yml
··· 11 11 cmd: gleam run -m squirrel 12 12 13 13 lint: 14 - desc: ๎š€ Lint and Format code 14 + desc: ๏” Lint and Format code 15 15 cmds: 16 16 - gleam check 17 17 - gleam format
taskfiles/PostgreTasks.yml

This is a binary file and will not be displayed.