seed user

This commit is contained in:
counterweight 2025-12-18 22:42:32 +01:00
parent ca55932a41
commit c5d3c7f4c9
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 49 additions and 10 deletions

View file

@ -1,4 +1,7 @@
.PHONY: install-backend install-frontend install backend frontend db db-stop db-ready dev test test-backend test-frontend test-e2e
.PHONY: install-backend install-frontend install backend frontend db db-stop db-ready db-seed dev test test-backend test-frontend test-e2e
-include .env
export
install-backend:
cd backend && uv sync --all-groups
@ -30,8 +33,11 @@ db-ready:
docker compose exec -T db psql -U postgres -c "CREATE DATABASE arbret_test"
@echo "PostgreSQL is ready"
db-seed: db-ready
cd backend && uv run python seed.py
dev:
$(MAKE) db
$(MAKE) db-seed
cd backend && uv run uvicorn main:app --reload & \
cd frontend && npm run dev & \
wait