9d845c8899
- backend moved to backend directory - added and initialized frontend with vue - moved infrastructure files to infra directory
24 lines
555 B
Makefile
24 lines
555 B
Makefile
.PHONY: generate_swagger run_standalone run_bot run_api run_frontend build_backend build_frontend
|
|
|
|
generate_swagger:
|
|
swag init -g backend/src/api/server.go -o backend/src/api/docs
|
|
|
|
run_standalone:
|
|
cd backend && export RUN_MODE=standalone && go run ./src
|
|
|
|
run_bot:
|
|
cd backend && export RUN_MODE=bot && go run ./src
|
|
|
|
run_api:
|
|
cd backend && export RUN_MODE=api && go run ./src
|
|
|
|
run_frontend:
|
|
cd frontend && npm run dev
|
|
|
|
build_backend:
|
|
mkdir -p output
|
|
cd backend && go build -o ../output/familyhub ./src
|
|
|
|
build_frontend:
|
|
cd frontend && npm run build
|