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

:art: add icons to recipes

kacaii.dev 567daf9d 4e9def74

verified
+12 -11
+12 -11
justfile
··· 5 5 # ------------------------------------------------------------------------------ 6 6 # CONFIG 7 7 # ------------------------------------------------------------------------------ 8 + 8 9 pod_name := "pod_sigo" 9 10 10 11 pg_image := "docker.io/postgres:18-alpine" ··· 23 24 # DEV 24 25 # ------------------------------------------------------------------------------ 25 26 26 - # Build Lustre runtime and start HTTP server 27 + # ๓ฐŒข Build Lustre runtime and start HTTP server 27 28 [group("dev")] 28 29 dev: 29 30 just client::build 30 31 just server::run 31 32 32 - # Update project dependencies 33 + # ๏ฑ Update project dependencies 33 34 [group("dev")] 34 35 deps-update: 35 36 just shared::deps-update 36 37 just client::deps-update 37 38 just server::deps-update 38 39 39 - # Check for errors 40 + # ๏’ฑ Check for errors 40 41 [group("dev")] 41 42 lint: 42 43 just server::lint 43 44 just client::lint 44 45 just shared::lint 45 46 46 - # Run unit tests 47 + # ๓ฐ™จ Run unit tests 47 48 [group("dev")] 48 49 test: 49 50 just server::test ··· 52 53 # CONTAINERS 53 54 # ------------------------------------------------------------------------------ 54 55 55 - # Create pod 56 + # ๓ฐ– Create pod 56 57 [group("podman")] 57 58 @create-pod: 58 59 podman pod exists {{ pod_name }} || \ ··· 61 62 -p 8000:8000 \ 62 63 -p 5432:5432 63 64 64 - # Build the backend container image 65 + # ๓ฐ– Build the backend container image 65 66 [group("podman")] 66 67 build-backend: 67 68 @podman build -t backend . 68 69 69 - # Starts the PostgreSQL database inside the pod 70 + # ๎ฎ Starts the PostgreSQL database inside the pod 70 71 [group("podman")] 71 72 @init-database: create-pod 72 73 podman run -d \ ··· 77 78 {{ pg_volume }} \ 78 79 {{ pg_image }} 79 80 80 - # Starts the backend application 81 + # ๏’ท Starts the backend application 81 82 [group("podman")] 82 83 @init-backend: create-pod build-backend 83 84 podman run -d \ ··· 87 88 backend 88 89 89 90 90 - # Starts the full stack 91 + # ๎ญป Starts the full stack 91 92 [group("podman")] 92 93 up: init-database init-backend 93 94 @echo {{ GREEN }}"Listening on http://0.0.0.0:8000"{{ NORMAL }} 94 95 95 - # Starts only the database 96 + # ๎ฎ Starts only the database 96 97 [group("podman")] 97 98 db-up: init-database 98 99 @echo {{ GREEN }}"PostgreSQL is ready on port 5432"{{ NORMAL }} 99 100 100 - # Stop and remove the entire pod 101 + # ๏ Stop and remove the entire pod 101 102 [group("podman")] 102 103 down: 103 104 podman pod exists {{ pod_name }} || (echo "Pod does not exist" && exit 1)