Skip to content

dotemacs/clojure-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published