···55# ------------------------------------------------------------------------------
66# CONFIG
77# ------------------------------------------------------------------------------
88+89pod_name := "pod_sigo"
9101011pg_image := "docker.io/postgres:18-alpine"
···2324# DEV
2425# ------------------------------------------------------------------------------
25262626-# Build Lustre runtime and start HTTP server
2727+# ๓ฐข Build Lustre runtime and start HTTP server
2728[group("dev")]
2829dev:
2930 just client::build
3031 just server::run
31323232-# Update project dependencies
3333+# ๏ฑ Update project dependencies
3334[group("dev")]
3435deps-update:
3536 just shared::deps-update
3637 just client::deps-update
3738 just server::deps-update
38393939-# Check for errors
4040+# ๏ฑ Check for errors
4041[group("dev")]
4142lint:
4243 just server::lint
4344 just client::lint
4445 just shared::lint
45464646-# Run unit tests
4747+# ๓ฐจ Run unit tests
4748[group("dev")]
4849test:
4950 just server::test
···5253# CONTAINERS
5354# ------------------------------------------------------------------------------
54555555-# Create pod
5656+# ๓ฐ Create pod
5657[group("podman")]
5758@create-pod:
5859 podman pod exists {{ pod_name }} || \
···6162 -p 8000:8000 \
6263 -p 5432:5432
63646464-# Build the backend container image
6565+# ๓ฐ Build the backend container image
6566[group("podman")]
6667build-backend:
6768 @podman build -t backend .
68696969-# Starts the PostgreSQL database inside the pod
7070+# ๎ฎ Starts the PostgreSQL database inside the pod
7071[group("podman")]
7172@init-database: create-pod
7273 podman run -d \
···7778 {{ pg_volume }} \
7879 {{ pg_image }}
79808080-# Starts the backend application
8181+# ๏ท Starts the backend application
8182[group("podman")]
8283@init-backend: create-pod build-backend
8384 podman run -d \
···8788 backend
888989909090-# Starts the full stack
9191+# ๎ญป Starts the full stack
9192[group("podman")]
9293up: init-database init-backend
9394 @echo {{ GREEN }}"Listening on http://0.0.0.0:8000"{{ NORMAL }}
94959595-# Starts only the database
9696+# ๎ฎ Starts only the database
9697[group("podman")]
9798db-up: init-database
9899 @echo {{ GREEN }}"PostgreSQL is ready on port 5432"{{ NORMAL }}
99100100100-# Stop and remove the entire pod
101101+# ๏ Stop and remove the entire pod
101102[group("podman")]
102103down:
103104 podman pod exists {{ pod_name }} || (echo "Pod does not exist" && exit 1)