19 Jan 2016

leiningen for Clojure

It has been a while since i have been itching to learn Clojure and have been using Python for around 3+ years. Learning new programming language is always a fun for a programmer. Obviously you need to find some spare time, specially on the job. 
But once you get started with Hello world !, your curiosity will find the time for you. 

While finding out what is the standard way to get started with a Clojure, i found that, Clojure community uses lein as a De-facto tool to build Clojure project. Same can be used as REPL (read-eval-print loop) as well.


After Downloading and installing lein,  created the project with name clojure-noob.

>> lein new app clojure-noob


which results in following directory structure.
















>> lein run
Hello World !

(This been displayed from the core.clj)

I liked the tag line for lein project:            Automate Clojure projects without setting your hair on fire. 

  Happy learning :).