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 setupStart database:
./runner upTo begin developing, start with a REPL.
./runner up -d
./runner replRun go to prep and initiate the system.
dev=> (go)
:duct.server.http.jetty/starting-server {:port 3000}
:initiatedBy 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 (...)
:resumedYou can use (auto-reset), (halt), (exit)
you can run tests through runner.
./runner up -d
./runner test