spring-ai-alibaba-admin/frontend/README.md
frontend-monorepo is a frontend project based on Monorepo architecture, mainly consisting of two core functional modules: the workbench application and the visual workflow editor. The project adopts modern frontend technology stack and supports multilingual internationalization.
frontend/
βββ packages/ # Monorepo subprojects
β βββ main/ # Main workbench application
β βββ spark-flow/ # Visual workflow editor
β βββ spark-i18n/ # Internationalization support
βββ package.json # Root project configuration
Before starting the web frontend service, please ensure the following environment is ready:
First, install the required dependencies in the root directory:
npm install rimraf copyfiles cross-env --save-dev
Then, install all project dependencies:
npm run re-install
Then, configure environment variables. Create a file named .env in the current directory and copy contents from .env.example. Modify these environment variable values according to your needs:
cd packages/main
On macOS/Linux:
cp .env.example .env
On Windows (PowerShell):
Copy-Item .env.example .env
# Web server URL
WEB_SERVER="http://127.0.0.1:8080"
# Backend type, e.g., java, python
BACK_END="java"
# Default username for application login
DEFAULT_USERNAME=saa
# Default password for application login
DEFAULT_PASSWORD=123456
Finally, run the development server:
npm run dev
Open http://localhost:8000 in your browser to view the result.
You can start editing files in the main/src folder. The page will automatically update when you edit files.
# If backend is java
npm run build:subtree:java
After the command completes, it will generate a ./packages/main/dist directory, which you can then deploy to your server.