Brool brool (n.) : a low roar; a deep murmur or humming

Setting Up Incanter and MySQL

 |  clojure coding

Okay, Lein really does make stuff pretty easy. Rather than wrestling with eleventybillion classpaths, just install Lein.

Create a new project directory with lein new mydirectory Change the project.clj file that is autogenerated with:

(defproject mydirectory "1.0.0-SNAPSHOT" :description "FIXME: write" 
  :dependencies [[org.clojure/clojure "1.1.0-alpha-SNAPSHOT"] 
    [org.clojure/clojure-contrib "1.0-SNAPSHOT"]
    [mysql/mysql-connector-java "5.1.6"]
    [incanter/incanter "1.0-master-SNAPSHOT"]])

(that is, add the mysql and incanter dependencies).

Download all the dependencies with lein deps

Start up a REPL with everything in the classpath by just using lein repl

Wow, that’s kind of nice.


Comments are moderated whenever I remember that I have a blog.

There are no comments on this article.

Add a comment