Initial FileZ project setup

This commit is contained in:
mixa
2026-03-02 22:32:46 +03:00
commit d6658100bd
40 changed files with 6239 additions and 0 deletions

37
Makefile Normal file
View File

@@ -0,0 +1,37 @@
.PHONY: build-all frontend-build sync-web backend-build run-all up down run-local run-backend run-frontend clean
build-all: frontend-build sync-web backend-build
frontend-build:
cd frontend && bun install --frozen-lockfile
cd frontend && bun run build
sync-web:
rm -rf backend/web/dist
mkdir -p backend/web
cp -R frontend/dist backend/web/dist
backend-build:
mkdir -p dist
cd backend && go build -o ../dist/driveflow-allinone .
run-all:
docker compose up --build
up:
docker compose up -d --build
down:
docker compose down
run-local:
bunx concurrently -n api,web "./dist/driveflow-allinone" "bun --cwd frontend dev"
run-backend:
cd backend && go run .
run-frontend:
bun --cwd frontend dev
clean:
rm -rf dist backend/web/dist frontend/dist