Demo application which featured in Lambda Island episodes
This app lets you keep a log of the books you read. It's web stack consists of Ring/Compojure/Hiccup, with Buddy for authentication, [Spicerack](https://github.com/jackrusher/spicerack] for persistence, and SparkleDriver for integration testing.
Open a terminal and type lein repl
to start a Clojure REPL
(interactive prompt).
In the REPL, type
(go)
This start the app system, including database and web server, available at http://localhost:1234. Although this is not a rich client app (it doesn't use ClojureScript), it still uses Figwheel to provide hot reloading of CSS (written using Garden).
To run the tests, use
lein test
This assumes you have a
Heroku account, have installed the
Heroku toolbelt, and have done a
heroku login
before.
git init
git add -A
git commit
heroku create
git push heroku master:master
heroku open
Heroku uses Foreman to run your
app, which uses the Procfile
in your repository to figure out which
server command to run. Heroku also compiles and runs your code with a
Leiningen "production" profile, instead of "dev". To locally simulate
what Heroku does you can do:
lein with-profile -dev,+production uberjar && foreman start
Now your app is running at http://localhost:5000 in production mode.
Copyright © 2017 Arne Brasseur
Distributed under the Mozilla Public License 2.0 https://www.mozilla.org/en-US/MPL/2.0/
Created with Chestnut 0.15.0-SNAPSHOT (242699d0).