Stelo Finance, the leading finance platform of BitCraft
- Store in-game assets in digital accounts
- Transact with any other player, anytime, no matter where in-game they are
- Manage logistics of assets using a first party warehousing system
- Use Nix Flake shell
- Log into fly account with
fly auth login - Connect to your fly private network via wireguard
- Run
task live(note, ensure the postgres cluster is running)
- Note, a Taskfile bug will kill the first startup, so save one of the files to cause it to restart. (issue #2202)
Database migrations are done with Goose. Migrations are in database/migrations/*.
Queries are handled with SQLC. Queries are located in database/queries/*
During development, JetStream data is stored in tmp/js.
The required ENV secrets are stored in .env at the project root, and are as follows:
ENV: "dev" or "prod"PORT: Port for the web server to run on, such as "8080"JS_DIR: Directory to store JetStream dataGOOSE_DRIVER: "postgres"GOOSE_DBSTRING: DB connection URI stringGOOSE_MIGRATION_DIR: "./database/migrations"GOTH_KEY: Key for GothDISCORD_CLIENT_ID: The Discord client ID for OAuthDISCORD_CLIENT_SECRET: The Discrod client secret for OAuthDISCORD_CALLBACK_URL: The auth callback URL for DiscordPOSTGRES_URI: Same asGOOSE_DBSTRING, the DB connection URI string