|
|
4 日 前 | |
|---|---|---|
| .githooks | 6 日 前 | |
| .vscode | 5 日 前 | |
| backend | 4 日 前 | |
| frontend | 5 日 前 | |
| .editorconfig | 5 日 前 | |
| .gitignore | 5 日 前 | |
| README.md | 5 日 前 |
This project contains:
backend: Spring Boot admin API.frontend/web: Vite + Vue 3 admin frontend.frontend/app: Taro + Vue 3 app frontend.The local development flow starts MySQL and Redis with Docker, then runs the backend and web frontend locally.
The development backend is configured to use the same defaults as
backend/docker-compose.yml:
localhost:3306, user root, password root123localhost:6379, password redis123agileboot_pureYou can start MySQL and Redis manually:
cd backend
docker compose up -d
The compose configuration mounts backend/sql/agileboot.sql into the MySQL
container as /docker-entrypoint-initdb.d/01-agileboot.sql.
The official MySQL image only runs files in /docker-entrypoint-initdb.d when
the database directory is empty, during the first initialization of the
mysql_data volume.
If MySQL has already been started before, the mysql_data volume already
contains data and docker compose up -d will not import the SQL again. To
reinitialize the local database, remove the volumes first:
cd backend
docker compose down -v
docker compose up -d
Warning: docker compose down -v deletes the local MySQL and Redis volumes,
including existing database data and Redis data.
If you do not want to delete the volumes, import the SQL manually:
cd backend
docker exec -i mysql-server mysql -uroot -proot123 agileboot_pure < sql/agileboot.sql
cd frontend
pnpm install
Start the backend:
cd backend
./mvnw -pl agileboot-admin spring-boot:run
Start the web frontend:
cd frontend
pnpm dev:web
http://localhost:8080http://localhost:80/The frontend development proxy maps /dev-api to http://localhost:8080.
Optional app commands:
cd frontend
pnpm dev:app:weapp
pnpm dev:app:h5
This repository uses .githooks as the single Git hooks entrypoint.
git config core.hooksPath .githooks
The frontend workspace uses pnpm:
cd frontend
pnpm install
pnpm dev:web
pnpm build:web
pnpm dev:app:weapp
pnpm build:app:weapp
pnpm lint
pnpm typecheck
frontend is a pnpm workspace:
web: Vite + Vue 3 admin frontend.app: Taro + Vue 3 app frontend.Shared engineering configuration lives in frontend root. Subprojects should extend the shared TypeScript, ESLint, Stylelint, Prettier, commitlint, and lint-staged configuration instead of duplicating it.