JSON-RPC App Example
JSON-RPC App Example
This page uses an operations center app as an example to explain how to build and deploy a JSON-RPC app.
Quick Start
Project Overview
This example shows a complete frontend/backend architecture with:
- Frontend: a modern web UI built with Vue.js and TypeScript
- Backend: a high-performance service using Unix Domain Socket and JSON-RPC
- Communication: APIs based on the JSON-RPC 2.0 standard
Get the Project
Repository: app-omc
# Clone the project
git clone https://github.com/GMSSH/app-omc.git
# Enter the project directory
cd app-omcRequirements
- Node.js: >= 18.2.0 (LTS recommended)
- Package manager: pnpm >= 7.0.0 (recommended) or npm >= 8.0.0
- Python: >= 3.10 (3.10.10 recommended)
- Poetry: Python dependency manager
Installation and Configuration
1. Install Poetry (if needed)
# Or use pip
pip3 install poetry2. Frontend Setup
# Enter the frontend directory
cd web
# Install dependencies
pnpm install
# Start the dev server (default port: 3000)
pnpm run dev
# Build for production
pnpm run build
# Preview the production build
pnpm run preview3. Backend Setup
# Enter the backend directory
cd backend
# Install Python dependencies
poetry install
# Activate the virtual environment
poetry shell
# Start the dev server
python main.pyResult
After a successful start you will see the following interface:

Important Notes
Development environment requirements:
- The full frontend experience must be opened inside the GM Desktop DevTools app environment
- The backend service only supports macOS and Linux
- Running on Linux is recommended
- You can use the GMSSH tools app for debugging and previewing the result
