- Run the initial migrations with
lein run migrateif it's the first time starting the server. - Start the server with
lein run
This will start a local server running on localhost at port 3000.
The swagger API documentation will also be available at http://localhost:3000/swagger-ui/index.html.
Uses Clojure plugin cljfmt
- Check formatting with
lein cljfmt check - Fix formatting with
lein cljfmt fix
Run Clojure tests with lein test
To create a new migration
- lein repl
- user=> (start)
- user=> (user/create-migration "migration name")
To run all migrations
- lein run migrate
To rollback the latest migration
- lein run rollback
Delete database, and apply all migrations
- lein run reset