A barebones Clojure app, which can easily be deployed to Heroku.
This application supports the Getting Started with Clojure article - check it out.
Make sure you have Clojure installed. Also, install the Heroku Toolbelt.
Then install Postgres, make sure it's running, and create a ticks
database like so:
$ createdb ticks
Then prepare the app:
$ git clone https://github.com/kissaten/clojure-db-pool.git
$ cd clojure-db-pool
$ lein repl
user=> (require 'ticks.web)
user=>(def server (ticks.web/-main))
Your app should now be running on localhost:5000.
$ heroku create
$ heroku addons:add heroku-postgresql:hobby-dev
$ git push heroku master
$ heroku open
For more information about using Clojure on Heroku, see these Dev Center articles: