An example Clojure application using Clean Architecture.
- Dependency Injection - Component.
- Web - Ring and Compojure using HTTP.
- Data - OKSQL using Postgres.
- Logging - tools.logging using standard output.
Start the docker services to run a Postgres container.
docker compose up -d
Start the application.
lein run
Visit the generated OpenAPI documentation.
http://localhost:3000/docs
Tests are run using Leiningen.
lein test
Coverage report can be found in target/coverage
after running the following command:
lein cloverage
- Find and replace
todo
for the example feature. - Final and replace
clean-clojure
for the app name.