Initialize project with basic structure, including Docker configuration, backend and frontend setup, environment configuration, and essential files for development.
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
.PHONY: dev-db dev-db-down migrate backend frontend test lint compose-check
|
||||
|
||||
dev-db:
|
||||
docker compose -f compose.dev.yaml up -d db
|
||||
|
||||
dev-db-down:
|
||||
docker compose -f compose.dev.yaml down
|
||||
|
||||
migrate:
|
||||
set -a; . ./.env; set +a; cd backend && go run ./cmd/api migrate
|
||||
|
||||
backend:
|
||||
set -a; . ./.env; set +a; cd backend && go run ./cmd/api
|
||||
|
||||
frontend:
|
||||
cd frontend && npm run dev
|
||||
|
||||
test:
|
||||
cd backend && go test ./...
|
||||
cd frontend && npm test
|
||||
|
||||
lint:
|
||||
cd backend && go vet ./...
|
||||
cd frontend && npm run lint
|
||||
cd frontend && npm run typecheck
|
||||
|
||||
compose-check:
|
||||
DISCORD_CLIENT_ID=test DISCORD_CLIENT_SECRET=test docker compose --env-file .env.example config --quiet
|
||||
Reference in New Issue
Block a user