This repository is a pre-setup of frequently used functions in duct.
- PostgreSQL (docker)
- migration (golang-migrate/migrate)
- routes (reitit)
You need to install:
And,
./runner setup
Start database:
./runner up
To begin developing, start with a REPL.
./runner up -d
./runner repl
Run go
to prep and initiate the system.
dev=> (go)
:duct.server.http.jetty/starting-server {:port 3000}
:initiated
By default this creates a web server at http://localhost:3000.
When you make changes to your source files, use reset
to reload any
modified files and reset the server.
dev=> (reset)
:reloading (...)
:resumed
You can use (auto-reset)
, (halt)
, (exit)
you can run tests through runner
.
./runner up -d
./runner test