One-click desktop application for Tokamak Rollup Hub. Deploy L2 rollups without touching the command line.
- Automatic Docker container orchestration
- Built-in setup wizard with dependency checking
- System tray integration for background operation
- Cross-platform support (macOS, Windows, Linux)
- Docker Desktop - Required for running the platform services
- Node.js 18+ - For development only
- Download the latest release from Releases
- Install and open TRH Platform
- Follow the setup wizard
# Clone the repository
git clone https://github.com/tokamak-network/trh-platform.git
cd trh-platform
# Install dependencies
npm install
# Build required Docker images (see Docker Images section)
# Run in development mode
npm run devThis application requires the following Docker images to be available locally:
| Image | Source |
|---|---|
trh-backend:electron |
Built from trh-backend |
trh-platform-ui:electron |
Built from trh-platform-ui |
postgres:15-alpine |
Pulled from Docker Hub |
git clone https://github.com/tokamak-network/trh-backend.git
cd trh-backend
# Use main branch or specific release tag when available
git checkout feat/cross-trade-integration
docker build -t trh-backend:electron .git clone https://github.com/tokamak-network/trh-platform-ui.git
cd trh-platform-ui
# Use main branch or specific release tag when available
git checkout feat/update-cross-trade
docker build -t trh-platform-ui:electron .# Run in development mode
npm run dev
# Watch mode (auto-recompile)
npm run dev:watch
# Build TypeScript only
npm run build# Build for current platform
npm run package
# Build for specific platforms
npm run package:mac
npm run package:win
npm run package:linuxBuild output is in the release/ directory.
Note: Windows builds require
icon.ico. Use a tool like ImageMagick to converticon.png:convert icon.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico
trh-platform/
├── src/main/
│ ├── index.ts # Electron main process
│ ├── preload.ts # IPC bridge (renderer ↔ main)
│ └── docker.ts # Docker container management
├── public/
│ ├── setup.html # Setup wizard UI
│ └── assets/ # Images, icons, logos
├── resources/
│ └── docker-compose.yml
└── package.json
- Setup Wizard - Checks Docker installation and pulls required images
- Container Orchestration - Starts PostgreSQL, backend API, and platform UI
- Dependency Installation - Installs required tools (pnpm, node, forge, aws) in the backend container
- Health Monitoring - Waits for all services to be healthy before loading the UI
- Platform UI - Loads the web interface at
http://localhost:3000
| Service | Port |
|---|---|
| Platform UI | 3000 |
| Backend API | 8000 |
| PostgreSQL | 5433 |
Environment files are managed in the config/ directory. These are excluded from git via .gitignore. The Electron app manages docker-compose configuration via environment variables passed directly to the container orchestration layer.
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
- trh-backend - Backend API
- trh-platform-ui - Platform UI
- tokamak-network - Tokamak Network organization