-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 794 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (26 loc) · 794 Bytes
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
# Goroutine Lab — dev shortcuts.
.PHONY: help backend frontend race vet up down build clean
help:
@echo "make backend - run the Go API on :8080"
@echo "make race - run the Go API with the race detector"
@echo "make frontend - run the Vite dev server on :5173"
@echo "make vet - go vet the backend"
@echo "make up - docker compose up --build"
@echo "make down - docker compose down"
backend:
cd backend && go run ./cmd/server
race:
cd backend && go run -race ./cmd/server
frontend:
cd frontend && npm install && npm run dev
vet:
cd backend && go vet ./...
up:
docker compose up --build
down:
docker compose down
build:
cd backend && go build ./...
cd frontend && npm install && npm run build
clean:
rm -rf frontend/dist frontend/node_modules