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
DB_DRIVER=mysql
DSN="root:root@tcp(localhost:3306)/fivemanage-lite"
AWS_ACCESS_KEY_ID=xxxx
AWS_SECRET_ACCESS_KEY=xxxx
AWS_ENDPOINT=
AWS_BUCKET=
AWS_REGION=
- 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 download
in the root directory, or just letair
handle it for you, but simply runningair
in the root directory. -
Set up docker.
- Run
docker compose -f deployments/docker-compose.yml -d
- Run
-
Set up environment variables
ADMIN_PASSWORD=password DB_DRIVER=mysql DSN="root:root@tcp(localhost:3306)/fivemanage-lite-dev"
DB_DRIVER
Can either bemysql
orpg
. Only mysql is properly tested.
First run all migrations.
- Init the migration:
go cmd/lite/lite.go db init
- Run the migrations:
go cmd/lite/lite.go db migrate
Start the actual app: 3. Run air
or go cmd/lite/lite.go
in the root directory to start the Go application 4. In web/
, run pnpm dev
to start the React application.