Basis usage

Basis usage

🚦 Quick Start: Run RTC Locally

Let’s get you up and running with a local development instance of RTC in a few simple steps.

Prerequisites

  1. Docker & Docker Compose: Needed to run the database.
  2. Goose: A database migration tool. Download it here.
  3. RTC Binaries: Download the latest rtcserver (the server) and rtcctl (the CLI control tool) from our Releases page.

Step-by-Step Guide

  1. Start the Database:
# Download our docker-compose file and run it
curl -O https://github.com/DesSolo/rtc/blob/master/docker-compose.d/docker-compose.yaml
docker-compose up -d

This will start a PostgreSQL database in the background.

  1. Setup the Database Schema:
# Download the migrations directory from the repository
# Then, apply the migrations using Goose
goose -dir ./migrations postgres "host=localhost port=5432 user=postgres password=postgres dbname=rtc sslmode=disable" up

This command creates all the necessary tables in your database.

  1. Configure and Run the Server:
# Get the example server configuration file
curl -O https://github.com/DesSolo/rtc/blob/master/examples/config.yaml
# Launch the server
./rtcserver
  1. You’re all set! πŸŽ‰ Open your browser and go to http://localhost:8080/ui to access the RTC management interface.

Default credentials: username admin password rtc

Last updated on