The one-step RobustMQ operation and maintenance management platform.
- Node >= 20.0
- pnpm >= 10.0
- Clone the project and install dependencies:
git clone <repository-url>
cd robustmq-copilot
pnpm install
- Start the development server:
pnpm ui:dev
The web UI will be available at http://localhost:4000
# Start development server (default port 4000)
pnpm ui:dev
# Start development server on custom port
PORT_DEV=8080 pnpm ui:dev
# Build for production
pnpm ui:build
# Preview production build
pnpm ui:preview
The project supports flexible configuration through environment variables and configuration files.
# Set development server port
PORT_DEV=8080 pnpm ui:dev
# Set preview server port
PORT_PREVIEW=8080 pnpm ui:preview
# Set build port
PORT_BUILD=8080 pnpm ui:build
The system automatically detects the current page address for API requests, but you can override this with environment variables:
# Set custom HTTP API address
API_BASE_URL=http://localhost:8080 pnpm ui:dev
# Set application title
APP_TITLE="My Custom Title" pnpm ui:dev
# Set application description
APP_DESCRIPTION="My Custom Description" pnpm ui:dev
# Set theme color
APP_THEME_COLOR="#000000" pnpm ui:dev
# Set development server host
DEV_HOST=0.0.0.0 pnpm ui:dev
# Disable auto-open browser
DEV_OPEN=false pnpm ui:dev
# Disable hot reload
DEV_HOT=false pnpm ui:dev
The project includes several predefined scripts for common configurations:
# Development with custom ports
pnpm run dev:8080 # Start dev server on port 8080
pnpm run dev:3001 # Start dev server on port 3001
# Preview with custom ports
pnpm run preview:8080 # Start preview server on port 8080
pnpm run preview:3001 # Start preview server on port 3001
- Environment Variables (Highest Priority)
- Configuration File Defaults (Medium Priority)
- Hardcoded Defaults (Lowest Priority)
For API addresses specifically:
- Environment Variable API Address (Highest Priority)
- Current Page Address (Medium Priority)
- Default Fallback Address (Lowest Priority)
Configuration is managed through packages/web-ui/config/app.js
. You can view the current configuration in the browser console via window.__APP_CONFIG__
.
# Standard local development
pnpm ui:dev
# Access at http://localhost:4000
# Connect to remote API server
API_BASE_URL=http://192.168.1.100:8080 pnpm ui:dev
# Frontend at http://localhost:4000, API calls to http://192.168.1.100:8080
# Different services on different servers
API_BASE_URL=http://api-server:8080 \
API_GRPC_URL=http://grpc-server:8080 \
API_PLACEMENT_GRPC_URL=http://placement-server:1228 \
pnpm ui:dev
# Build with production API endpoints
API_BASE_URL=https://api.production.com \
API_GRPC_URL=https://grpc.production.com \
pnpm ui:build
# Allow network access to development server
DEV_HOST=0.0.0.0 PORT_DEV=8080 pnpm ui:dev
# Access from other devices on network at http://your-ip:8080
robustmq-copilot/
├── packages/
│ ├── web-ui/ # Frontend React application
│ │ ├── src/ # Source code
│ │ ├── config/ # Configuration files
│ │ └── dist/ # Build output
│ └── services/ # gRPC service definitions
├── robustmq-proto/ # Protocol buffer definitions (submodule)
└── package.json # Root package configuration
- Clone the project and initialize submodules:
git clone <repository-url>
cd robustmq-copilot
git submodule update --init --recursive
- Install dependencies:
pnpm install
- Start development:
pnpm ui:dev
When the protocol buffer definitions are updated:
- Update the submodule:
git submodule update --remote
- Regenerate gRPC code:
pnpm gen:grpc
The configuration system is located in packages/web-ui/config/
:
app.js
- Main configuration fileREADME.md
- Detailed configuration documentation
# Development build
pnpm ui:dev
# Production build
pnpm ui:build
# Preview production build
pnpm ui:preview
All configuration can be overridden with environment variables. See the Configuration section for details.
If you encounter port conflicts:
# Use a different port
PORT_DEV=8080 pnpm ui:dev
# Or kill existing processes
pkill -f "rsbuild dev"
If API requests fail:
- Check if the backend service is running
- Verify API address configuration:
# Use custom API address API_BASE_URL=http://your-api-server:8080 pnpm ui:dev
- Check browser console for configuration:
window.__APP_CONFIG__
If builds fail:
- Clear node_modules and reinstall:
rm -rf node_modules pnpm install
- Clear build cache:
rm -rf packages/web-ui/dist pnpm ui:build
- Frontend: React 19, TypeScript, TanStack Router, TanStack Query
- UI Components: Radix UI, Tailwind CSS
- Build Tool: Rsbuild
- Package Manager: pnpm
- gRPC: gRPC-Web for service communication
- State Management: Zustand
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature-name
- Make your changes and test them thoroughly
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature-name
- Submit a pull request
- Follow the existing code style and patterns
- Add TypeScript types for new features
- Update configuration documentation when adding new environment variables
- Test your changes with different configuration scenarios
- Ensure backward compatibility when possible
This project is licensed under the terms specified in the LICENSE file.