Skip to content

A little demo web app in Clojure, using Integrant, Ring, Reitit, Selmer (and a database)

Notifications You must be signed in to change notification settings

mzvankovich/usermanager-reitit-integrant-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Web Application in Clojure

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.

Requirements

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.

Usage

Run the Application

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.system

or more conveniently, using an alias configured in deps.edn file.

$ clj -A:server

Now acces the app at: http://localhost:3000/.

Run the Application in REPL

$ clj -A:dev

Once REPL starts, run the system:

user=> (go)

Now acces the app at: http://localhost:3000/.

License & Copyright

Copyright (c) 2015-2020 Sean Corfield / Michaël SALIHI.

Distributed under the Apache Source License 2.0.

About

A little demo web app in Clojure, using Integrant, Ring, Reitit, Selmer (and a database)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 44.6%
  • Clojure 40.5%
  • HTML 13.7%
  • Emacs Lisp 1.2%