No Description

gin c4f12a5336 refactor: add clean code contract 1 day ago
.codex 51201d2cac refactor: add docs and skills 1 day ago
.githooks cdee21ee8e feat: initial commit 6 days ago
.vscode 0024459709 refactor: modify configuration of the editor 5 days ago
backend e9eb0eaef8 refactor: delete the menu related to agileboot 4 days ago
docs c4f12a5336 refactor: add clean code contract 1 day ago
frontend b44e9882a1 fix: navigation 404 5 days ago
.editorconfig 0024459709 refactor: modify configuration of the editor 5 days ago
.gitignore a5d3c35cfb refactor: create a .gitignore file in the root directory 5 days ago
AGENTS.md c4f12a5336 refactor: add clean code contract 1 day ago
README.md ce80a5fe06 docs: update readme 3 days ago

README.md

Simple Template

本项目包含以下模块:

本地开发流程通常是先使用 Docker 启动 MySQL 和 Redis,然后在本地启动后端服务,Web 前端或小程序端。

环境要求

  • JDK 8+
  • Docker
  • Docker Compose
  • Node.js
  • pnpm

Git Hooks

本仓库使用 .githooks 作为统一的 Git hooks 入口。

git config core.hooksPath .githooks

启动基础服务

启动 MySQL 和 Redis:

cd backend

# 启动 MySQL 和 Redis
docker compose up -d

# 停止 MySQL 和 Redis
docker compose down

# 使用 -v 参数可以删除数据卷
docker compose down -v

Docker Compose 配置会将 backend/sql/agileboot.sql 挂载到 MySQL 容器内的 /docker-entrypoint-initdb.d/01-agileboot.sql,MySQL 服务启动后会自动创建数据库和执行 agileboot.sql 文件。

启动项目

启动后端:

cd backend
./mvnw -pl agileboot-admin spring-boot:run

启动 Web 前端:

cd frontend
pnpm dev:web

启动小程序端:

cd frontend

# 启动微信小程序
pnpm dev:app:weapp

# 启动 h5
pnpm dev:app:h5
  • 后端:http://localhost:8080
  • 前端:http://localhost:80,用户(admin),密码(admin123)
  • 使用对应的小程序开发者工具打开 frontend/app 目录