Clojure

Getting Started with Clojure on Heroku

Last week I introduced the Den of Clojure to Heroku. I really enjoyed learning more about Clojure and experiencing super simple Clojure deployment on Heroku. For those who haven’t yet deployed Clojure on Heroku, lets walk through 8 quick steps to get you started:

  1. Install the Heroku Toolbelt and Leiningen
  2. Login to Heroku from the command line: ```bash heroku login
    
    If this is your first time logging into Heroku from the command line then you will be led through some steps to associate an SSH key with your Heroku account.</li> 
    
      * Create a new Leiningen build definition by creating a file named **project.clj** containing: ```clojure
(defproject hello-clojure-noir "0.1.0-SNAPSHOT"
  :main web
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [noir "1.2.1"]])
    As you can see from the dependencies, this simple app uses the [Noir web framework][4].</li> 
    
      * Create a simple Noir app by creating a file named **src/web.clj** containing: ```clojure

(ns web (:use noir.core) (:require [noir.server :as server]))