A Leiningen template for creating Bright North's standard API services
Includes a stack of useful Clojure libraries and patterns:
- Compojure routing
- A sensible default set of ring middleware
- Setup for both lein ring server and uberjar invocation
- Korma for SQL manipulation
- Midje for testing
- conf-er for configuring the app (db details etc)
And some wrappers round useful Java libraries:
First grab the template and install it (it's not on clojars ... yet)
git clone https://github.com/BrightNorth/bn-service
cd bn-service
lein install
Then edit your ''~/.lein/profiles.clj'' to include the plugin
{:user {:plugins [[bn-service/lein-template "0.1.0-SNAPSHOT"]]}}
Then you can create a project using the template as follows:
cd <my-working-directory>
lein new bn-service <project-name>
lein ring server
Create default Midje tests
Copyright © 2013 Bright North (http://www.brightnorth.co.uk)
Distributed under the Eclipse Public License, the same as Clojure.