Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pxyup/ton_games_example

Example of application with TON wallet and golang
https://github.com/pxyup/ton_games_example

cryptocurrency golang ton

Last synced: about 1 month ago
JSON representation

Example of application with TON wallet and golang

Awesome Lists containing this project

README

        

# Example of game on TON token

# What is here:

1. Authorization
2. Top-up/withdraw
3. API + 2 games: Rock-Paper-Scissors/Max random

# Stack

1. Echo as API server
2. Postgres as database

# How to run

## Local

```bash
WALLET_SEED="...24words" TONPROOF_PAYLOAD_SIGNATURE_KEY="secret_key" APP_HOST="blala.ngrok-free.app" LOCAL=true WITH_DB_SCHEMA=true BOT_TOKEN="TELEGRAM_BOT_TOKEN" go run cmd/app/main.go
```

## Cloud

```bash
WALLET_SEED="...24words" TONPROOF_PAYLOAD_SIGNATURE_KEY="secret_key" DB_DSN="CONN_DSN" APP_HOST="balala.ngrok-free.app" WITH_DB_SCHEMA=true BOT_TOKEN="TELEGRAM_BOT_TOKEN" go run cmd/app/main.go
```