Skip to content

fivemanage/lite

Repository files navigation

Fivemanage Lite

Deployment

To run Fivemanage Lite, you need to set up a MySQL or PostgreSQL database and an object storage service (S3 compatible).

Database

You can use either MySQL or PostgreSQL. The default is MySQL.

Object Storage

Currently only S3 or compatible object storage is supported.

  • s3
  • r2
  • minio

Azure and GCP are not supported yet.

Docker

You can have a look at the docker-compose.yml file in the deployments folder.

Environment variables

You can copy the .env.template file to .env and set the values.

ADMIN_PASSWORD=verysecurepassword
DSN=postgres://username:password@host:5432/fivemanage-lite?sslmode=disable

API_TOKEN_HMAC_SECRET=<32 bytes secret>

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_ENDPOINT=
AWS_BUCKET=
AWS_REGION=

CLICKHOUSE_HOST=localhost:19000
CLICKHOUSE_DATABASE=default
# for prod, you should create a new user with a password, or change the default user
CLICKHOUSE_USERNAME=default
CLICKHOUSE_PASSWORD=password

Development

Prerequisites

Setup

  1. Install node_modules in /web.
  2. Either run go mod download in the root directory, or just let air handle it for you, but simply running air in the root directory.
  3. Set up docker.
    1. Run docker compose -f deployments/docker-compose.yml up -d
  4. Set up environment variables
ADMIN_PASSWORD=password
DSN=postgres://postgres:root@localhost:5432/fivemanage-lite-dev?sslmode=disable

API_TOKEN_HMAC_SECRET=<32 bytes secret>

AWS_ACCESS_KEY_ID=xxxx
AWS_SECRET_ACCESS_KEY=xxxx
AWS_ENDPOINT=
AWS_BUCKET=
AWS_REGION=

CLICKHOUSE_HOST=localhost:19000
CLICKHOUSE_DATABASE=default
CLICKHOUSE_USERNAME=default
CLICKHOUSE_PASSWORD=password

Running the application

Migrations for Clickhouse and PostgreSQL are run automatically when the application starts.

Start the actual app:

  1. Run air or go run cmd/lite/lite.go in the root directory to start the Go application
  2. In web/, run pnpm dev to start the React application.

About

Self-hosted version of Fivemanage - Your suite for game monitoring & management

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •