blob: 07f682f9dae0b265c7e64ffe94bd7cd1773d5fbc (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
.PHONY: build
build:
docker compose build
.PHONY: up
up:
docker compose up -d
.PHONY: down
down:
docker compose down
.PHONY: api-server-only-build
api-server-only-build:
docker compose build api-server-only
.PHONY: api-server-only-up
api-server-only-up:
docker compose up -d api-server-only
.PHONY: api-server-only-down
api-server-only-down:
docker compose down api-server-only db
.PHONY: psql
psql:
docker compose exec db psql --user=postgres albatross
.PHONY: sqldef-dryrun
sqldef-dryrun: down
docker compose build db
docker compose up -d db
docker compose run --no-TTY tools psqldef --dry-run < ./backend/schema.sql
.PHONY: sqldef
sqldef: down
docker compose build db
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
|