|
|
6 dni temu | |
|---|---|---|
| .githooks | 6 dni temu | |
| backend | 6 dni temu | |
| frontend | 6 dni temu | |
| README.md | 6 dni temu |
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
On a fresh Docker volume, Compose creates the MySQL database agileboot_pure.
Import the SQL files under backend/sql/ before starting the backend.
cd frontend
pnpm install
Start the backend:
cd backend
./mvnw -pl agileboot-admin -am 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.