This is the Go backend powering Koano — a modern, Zen-inspired calendar and scheduling engine.
For the frontend/client, see the koano frontend repository.
git clone https://github.com/ushiradineth/koano-api
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
go install github.com/swaggo/swag/cmd/swag@latestgo install github.com/mitranim/gow@latest
- Check the
.env.examplefile for the required environment variables. - Use
cp .env.example .envto create the.envfile.
- Run
docker compose -f deployments/docker-compose.yml --env-file .env up -dto start the Postgres Database and Adminer. - Wait for a moment for the database to initialize.
- You can use Adminer, a web-based administration tool included in the setup, to manage your database. Access Adminer at localhost:9090.
- In Adminer, use the following credentials:
- Server: postgres:5432
- Username: koano
- Password: password
- Database: koano
- Run
make db_upto run the latest Database Migration.
- Note: Make sure the database is the development database
go run cmd/seeder/main.goormake db_seed
go run cmd/api/main.goormake rungow run cmd/api/main.goormake run_watch
- Run
docker build -t koano-api:go -f deployments/Dockerfile .ormake build_imageto build the image.
- Uncomment the
koano-apiservice indocker-compose.yml. - Run
docker compose -f deployments/docker-compose.yml --env-file .env up -dormake compose_upto start the Postgres Database, Adminer, and the Koano Go HTTP Server.
go test -v -cover -failfast test ./...ormake test