mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-28 11:25:00 +00:00
- Migrate all Maven groupId and Java packages to com.iflytek.skillhub - Add Docker Compose with PostgreSQL 16, Redis 7, MinIO - Add Flyway V1 migration with Phase 1 core schema (user, auth, RBAC, namespace, audit) - Add RequestIdFilter with MDC tracing and X-Request-Id header - Add GlobalExceptionHandler and ErrorResponse DTO - Add HealthController (/api/v1/health) and OpenAPI config - Add basic SecurityConfig permitting public endpoints - Add H2 test profile for CI-friendly testing without external services - Add top-level Makefile for dev workflow orchestration - All 3 tests passing
29 lines
657 B
Makefile
29 lines
657 B
Makefile
.PHONY: dev dev-down build test clean
|
||
|
||
# 启动本地开发环境(仅依赖服务)
|
||
dev:
|
||
docker compose up -d
|
||
@echo "Waiting for services to be healthy..."
|
||
@sleep 5
|
||
@echo "Services ready. Start backend with: cd server && ./mvnw spring-boot:run -Dspring-boot.run.profiles=local"
|
||
|
||
# 停止本地开发环境
|
||
dev-down:
|
||
docker compose down
|
||
|
||
# 构建后端
|
||
build:
|
||
cd server && ./mvnw clean package -DskipTests
|
||
|
||
# 运行测试
|
||
test:
|
||
cd server && ./mvnw test
|
||
|
||
# 清理构建产物
|
||
clean:
|
||
cd server && ./mvnw clean
|
||
docker compose down -v
|
||
|
||
# 生成 OpenAPI 类型(前端用,Phase 1 暂不实现)
|
||
generate-api:
|
||
@echo "Frontend not yet implemented"
|