Last Updated: February 25, 2016
·
2.475K
· robertkowalski

New Noir project with Leiningen 2

You may have noticed that the instructions on webnoir.org are not working with Leiningen 2 - they are just working with Leiningen 1.

So lets start a Noir project with Leiningen 2. Open

~/.lein/profiles.clj

Modify it to:

{:user {:plugins [[lein-noir "1.2.1"]
                 ]}}

To start a new project you now enter

lein new noir my-projectname

on your console. Use

cd my-projectname && lein run 

to load the dependencies and start a webserver.