- Clone this repository
- cp .env.example .env
- Run
go mod tidy
to install dependencies - Run
go run main.go
to start the server
- Clone this repository
- cp .env.example .env
- Run
docker-compose up -d
to start the server
- Install [Go Fiber CLI](go install github.com/gofiber/cli/fiber@latest)
- Run
fiber dev
to start the server with hot reload
go run main.go migrate --create=<migration_name>
go run main.go migrate
go run main.go migrate rollback
Note: rollback argument will only rollback the last migration, if you want to rollback multiple migration, you can use --step flag Example: go run main.go migrate rollback --step=2