Add full monorepo: virtual-banker, backend, frontend, docs, scripts, deployment
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
40
Makefile
Normal file
40
Makefile
Normal file
@@ -0,0 +1,40 @@
|
||||
.PHONY: help install dev build test clean migrate
|
||||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " install - Install dependencies"
|
||||
@echo " dev - Start development environment"
|
||||
@echo " build - Build all services"
|
||||
@echo " test - Run tests"
|
||||
@echo " clean - Clean build artifacts"
|
||||
@echo " migrate - Run database migrations"
|
||||
|
||||
install:
|
||||
cd backend && go mod download
|
||||
cd frontend && npm install
|
||||
|
||||
dev:
|
||||
docker-compose -f deployment/docker-compose.yml up -d postgres elasticsearch redis
|
||||
@echo "Waiting for services to be ready..."
|
||||
sleep 5
|
||||
cd backend && go run database/migrations/migrate.go
|
||||
@echo "Starting services..."
|
||||
cd backend/indexer && go run main.go &
|
||||
cd backend/api/rest && go run main.go &
|
||||
cd frontend && npm run dev
|
||||
|
||||
build:
|
||||
cd backend && go build ./...
|
||||
cd frontend && npm run build
|
||||
|
||||
test:
|
||||
cd backend && go test ./...
|
||||
cd frontend && npm test
|
||||
|
||||
clean:
|
||||
cd backend && go clean ./...
|
||||
cd frontend && rm -rf .next node_modules
|
||||
|
||||
migrate:
|
||||
cd backend && go run database/migrations/migrate.go
|
||||
|
||||
Reference in New Issue
Block a user