seed user
This commit is contained in:
parent
ca55932a41
commit
c5d3c7f4c9
3 changed files with 49 additions and 10 deletions
10
Makefile
10
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue