Skip to content

BoltApp/bolt-gameserver-sample

Repository files navigation

Bolt Gameserver Sample

⚠️ Note: We will be updating this repo with a fully featured demo in the very near future. If you would like early access please let our team know.

Bolt Charge Hero

Description

Sample backend code snippets to demonstrate how to integrate Bolt's SDK into your game server.

What You Will Find

This project showcases an example backend with the following flows implemented

  • Payment Links: Creating links that take user to checkout
  • Validate Order: Validating a transaction was successful for a specific user
  • Transaction Webhooks: Handling webhooks on transaction success as users make purchases in your game

API Keys

Bolt uses API keys to authenticate your requests. You can manage your API keys in the Bold Dashboard.

Quick Start

When you are ready to implement Bolt into your gaming SDK make sure to follow along using the Installation Guide.

Installation Guide: Our Quickstart guide will walk you through the full gaming setup.

Development Environment

This project includes a Tilt configuration for easy local development. You have two options to start the development environment:

Setup:

cp client/.env.local.sample client/.env.local
cp client/.env.staging.sample client/.env.staging

cp server/.env.local.sample server/.env.local
cp server/.env.staging.sample server/.env.staging

Using script (uses Tilt):

./start-dev.sh

The start-dev.sh script provides additional features:

  • Automatic ngrok hostname configuration based on your BL_DOMAIN environment variable
  • Support for custom ngrok hostnames (requires reserved domain in ngrok dashboard)
  • Proper environment variable setup for the Tilt environment

Both options will start the backend server, frontend client, and ngrok tunnel for external access.

Onboarding

Merchant Dashboard: Make sure you have fully onboarded onto our Bolt Gaming sandbox. You can sign up or sign in depending if you have an existing merchant account or not.

Support

Language Support: Looking for a different language or a particular server SDK? You can easily clone, copy, or paste URL this lightweight repo into your favorite copilot tool and it should do a good job replicating the interfaces for you.

Bolt Support: If you have questions or need additional support please reach out to us in our discord server and we would be happy to assist!

About

Gaming Backend Example using Bolt SDKs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5