Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 758 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 758 Bytes

Sample Clojure web app

Basic web app written in Clojure, with authentication, prompted by this discussion.

It uses Postgresql database & Mailgun for email sending.

Usage

Create the database:

createdb webapp-dev

Then start the REPL in a way that you like. With Emacs' CIDER you'd do it like this:

M-x [RET] cider-jack-in [RET]

and then at the REPL:

(go)

Then run the migrations:

user> (repl/migrate (ragtime-config "jdbc:postgresql://localhost/webapp-dev"))

Then add a first user:

user> (add-user {:database (:db system) :email "foo@bar.com" :password "secret"})

Open http://localhost:3000/ and play around the app.