This repo is a simple web application using Integrant, Ring, Reitit, and Selmer connected to a local SQLite database.
For learning purpose, I redid from scratch the very useful Sean Corfield usermanager repo and decided to move some libraries to learn them too in the process.
This example assumes that you have the Clojure CLI installed, and provides a deps.edn file.
Clojure 1.10 (or later) is required. The “model” of this example app uses namespace-qualified keys in hash maps. It uses next.jdbc – the “next generation” JDBC library for Clojure – which produces namespace-qualified hash maps from result sets.
Clone the repo, cd into it, then follow below to Run the Application or Run the application in REPL.
You can launch the application by directly calling the namespace which contains the -main function in an terminal
$ clj -m usermanager.systemor more conveniently, using an alias configured in deps.edn file.
$ clj -A:serverNow acces the app at: http://localhost:3000/.
$ clj -A:devOnce REPL starts, run the system:
user=> (go)Now acces the app at: http://localhost:3000/.
Copyright (c) 2015-2020 Sean Corfield / Michaël SALIHI.
Distributed under the Apache Source License 2.0.