English | 简体中文
This system is a report rendering module extracted from the actual production platform, as a stand-alone report generation system.
This system is BS architecture, this project is a frontend service:
- Github: https://github.com/52jing/wang-template-admin
- Gitee: https://gitee.com/i52jing/wang-template-admin
Backend service at:
- Github: https://github.com/52jing/wang-template-backend
- Gitee: https://gitee.com/i52jing/wang-template-backend
- Lightweight
This system only focuses on report generation, which can interface with any data source and generate corresponding reports through customized templates.
- Extensible
The system adopts a modular architecture and an interface-oriented design, which makes it easy to quickly extend other data sources and rendering methods.
- Easy Integration
Easily integrated into other systems as a module for report generation functions.
- More Intelligent
Integration of AIGC services provides smarter report generation capabilities.
Tech | Version |
---|---|
Node | 16+ |
Vue | 3+ |
Typescript | |
Quasar | 2+ |
Use docker compose to quickly deploy:
- Github: https://github.com/52jing/wang-template-compose
- Gitee: https://gitee.com/i52jing/wang-template-compose
Build Image
docker build -t wang-template-backend:1.0 .
Mount config file and start container
docker run -d --name wang-template-backend -p 8000:8000 -v <path-to-config>/application-prod.yml:/opt/config/application-prod.yml wang-template-backend:1.0
Package by Maven
mvn clean package -DskipTests
Jar file is under app/target/app.jar, add config file and start jar.
Build Image
docker build -t wang-template-admin:1.0 .
Start Container
docker run -d --name wang-template-admin -p 8001:80 wang-template-admin:1.0
Build by Vite
yarn build
Files are under dist/spa directory.
Note: Since the frontend defaults to the same domain and port for backend services, you need to use a front load-balancing proxy, or configure the backend request base path when build the frontend (see Environment Variables).
Please refer to repository Github / Gitee .
yarn
# or
npm install
yarn dev
# or
npm run dev
yarn lint
# or
npm run lint
yarn format
# or
npm run format
yarn build
# or
npm run build
See Configuring quasar.config.js.
Add .env
file in the project root directory.
Env | Description | Default |
---|---|---|
VUE_ROUTER_MODE | vue router mode, hash, history or abstract | hash |
VUE_ROUTER_BASE | Base applied to all urls, defaults to '/' | / |
BASE_API | Base URL for api | /api/ |
FRONTEND_ID | Frontend ID for this project, related to frontend in backend | |
ENABLE_REGISTER | whether to enable registration | false |
ENABLE_LOCALE | whether to enable locale | true |
DEFAULT_LOCALE | default locale | zh-CN |
SHOW_AJAX_BAR | whether to show ajax bar | false |
SHOW_HISTORY_BAR | whether to show history bar | true |
ENABLE_CAPTCHA | whether to enable captcha | false |
LOGIN_CAPTCHA_TYPE | captcha type for login page | image |
ENABLE_CRYPTO | whether to enable API crypto | false |
CRYPTO_MODE | API crypto mode, aes_sm2 or sm2 | aes_sm2 |
PUBLIC_KEY | API crypto publick key for sm2 | |
ENABLE_DEV_PROXY | whether to enable dev proxy, only for dev | false |
DEV_TARGET | target for dev proxy | http://127.0.0.1:8000 |