To run Fivemanage Lite, you need to set up a MySQL or PostgreSQL database and an object storage service (S3 compatible).
You can use either MySQL or PostgreSQL. The default is MySQL.
Currently only S3 or compatible object storage is supported.
- s3
- r2
- minio
Azure and GCP are not supported yet.
You can have a look at the docker-compose.yml file in the deployments folder.
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- Go: 1.23 or later
- Node.js: 20.x or later
- pnpm: 9.11.x or later
- air: hot reload for Go (https://github.com/air-verse/air)
- Install node_modules in
/web. - Either run
go mod downloadin the root directory, or just letairhandle it for you, but simply runningairin the root directory. - Set up docker.
- Run
docker compose -f deployments/docker-compose.yml up -d
- Run
- 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=passwordMigrations for Clickhouse and PostgreSQL are run automatically when the application starts.
Start the actual app:
- Run
airorgo run cmd/lite/lite.goin the root directory to start the Go application - In
web/, runpnpm devto start the React application.