Minimal API functionality with unit tests, could be used for integration tests with Unity server. For internal testing used RPC_server implementation
57 lines
1.1 KiB
Markdown
57 lines
1.1 KiB
Markdown
# Cloud Point RPC
|
|
|
|
Communication JSON RPC protocol and implementation with Unity Scene.
|
|
|
|
## API Documentation
|
|
|
|
See [API.md](API.md) for detailed request/response formats.
|
|
|
|
## Development
|
|
|
|
The project uses **Meson** build system and **C++20**.
|
|
|
|
### Dependencies
|
|
- Meson, Ninja
|
|
- GCC/Clang (C++20 support)
|
|
- Git (for subprojects)
|
|
|
|
### Build & Run
|
|
```bash
|
|
meson setup build
|
|
meson compile -C build
|
|
./build/src/cloud_point_rpc_server config.yaml
|
|
```
|
|
|
|
### Testing
|
|
```bash
|
|
meson test -C build -v
|
|
```
|
|
|
|
## Docker
|
|
|
|
You can build and run the server using Docker.
|
|
|
|
### 1. Build Image
|
|
```bash
|
|
docker build -t cloud-point-rpc .
|
|
```
|
|
|
|
### 2. Run Container
|
|
The server runs on port **8080** by default (defined in `config.yaml` inside the image).
|
|
|
|
**Option A: Port Mapping**
|
|
```bash
|
|
docker run -p 8080:8080 cloud-point-rpc
|
|
```
|
|
|
|
**Option B: Host Network (For Simplicity/Performance)**
|
|
```bash
|
|
docker run --network host cloud-point-rpc
|
|
```
|
|
|
|
**Custom Configuration:**
|
|
You can mount your own `config.yaml` to override the default settings:
|
|
```bash
|
|
docker run -p 8080:8080 -v $(pwd)/my_config.yaml:/app/config.yaml cloud-point-rpc
|
|
```
|