aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 8f145d452262e03d08d4c4f9eb03f53f0a64931c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: build
build:
	docker compose build

.PHONY: up
up:
	docker compose up -d

.PHONY: down
down:
	docker compose down

.PHONY: psql
psql: up
	docker compose exec db psql --user=postgres albatross

.PHONY: sqldef-dryrun
sqldef-dryrun: down build
	docker compose up -d db
	docker compose run --no-TTY tools psqldef --dry-run < ./backend/schema.sql

.PHONY: sqldef
sqldef: down build
	docker compose up -d db
	docker compose run --no-TTY tools psqldef < ./backend/schema.sql

.PHONY: oapi-codegen
oapi-codegen:
	cd backend; make oapi-codegen

.PHONY: openapi-typescript
openapi-typescript:
	cd frontend; make openapi-typescript

.PHONY: sqlc
sqlc:
	cd backend; make sqlc