aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2026-04-10 11:13:34 +0800
committerbenj <benj@rse8.com>2026-04-10 11:13:34 +0800
commit493746b14c1251a45b061d2e3edd9160c929d2b9 (patch)
tree1607cceb94c1aac1a17a01bb5c0d71b97342e892 /justfile
parentc041641634650c31e03c70dcad132fd94cb08e63 (diff)
downloadtidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.gz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.bz2
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.lz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.xz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.zst
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.zip
a basic ui and landing web interface for tidyindex.com
Diffstat (limited to 'justfile')
-rw-r--r--justfile48
1 files changed, 48 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..9ef7138
--- /dev/null
+++ b/justfile
@@ -0,0 +1,48 @@
+database_url := "postgres://tidyindex:tidyindex@localhost:35434/tidyindex"
+
+default:
+ @just --list
+
+dev-setup: db-up migrate seed
+ @echo "Development environment ready"
+
+dev-teardown: db-destroy
+ @echo "Development environment torn down"
+
+db-up:
+ docker compose up -d postgres
+ @until docker exec tidyindex-postgres pg_isready -U tidyindex -d tidyindex > /dev/null 2>&1; do sleep 1; done
+
+db-destroy:
+ docker compose down -v --remove-orphans
+ docker rm -f tidyindex-postgres 2>/dev/null || true
+ docker volume rm tidyindex-pgdata 2>/dev/null || true
+
+db-logs:
+ docker compose logs -f postgres
+
+db-reset: db-destroy db-up migrate seed
+ @echo "Database reset complete"
+
+db-shell:
+ docker exec -it tidyindex-postgres psql -U tidyindex -d tidyindex
+
+migrate:
+ docker exec -i tidyindex-postgres psql -U tidyindex -d tidyindex < migrations/001_raw_schema.sql
+
+seed:
+ /home/benj/.virtualenvs/tidyindex/bin/python scripts/seed.py
+
+# ---- web stack (pnpm workspace at web/) ----
+
+web-install:
+ cd web && pnpm install
+
+web-dev-ui:
+ cd web && pnpm dev:ui
+
+web-dev-api:
+ cd web && pnpm dev:api
+
+web-check:
+ cd web && pnpm check