Step 1: Setup project
Create a game on the Rivet Dashboard
Visit the Rivet Dashboard to create a new game.Install the Rivet CLI
Follow instructions here.Initialize the project
Open your project’s directory in a terminal and run:Write a Dockerfile for your server
You’ll need a Dockerfile to build and run your game server.
Unfamiliar with Dockerfiles?
Unfamiliar with Dockerfiles?
- Boilerplate
Dockerfileshas one already written for you - Dockerfile Crash Course will teach you how to write your own
Dockerfilequickly - Join our Discord and we'll write your
Dockerfilefor you!
Step 2: Integrate Rivet Matchmaker
Install the Rivet library
Update your client
Copy the following pseudocode into the appropriate places in your source:In development,
RIVET_TOKEN will use the development token generated by rivet run. In production, RIVET_TOKEN will be automatically added by the CDN.Update your server
Copy the following pseudocode into the appropriate places in your source:In development,
RIVET_TOKEN will use the development token generated by rivet run. In production, RIVET_TOKEN is automatically added to your environment by Rivet.Step 3: Publish your game
rivet.game. If you are hosting your game on Rivet CDN, visit that URL to play your game.