Skip to content

BrightNorth/bn-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bn-webapp

A Leiningen template for creating Bright North's standard web applications

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
  • Dieter for compiling and compressing assets
  • conf-er for configuring the app (db details etc)

And some wrappers round useful Java libraries:

Usage

First grab the template and install it (it's not on clojars ... yet)

  git clone https://github.com/BrightNorth/bn-webapp
  cd bn-webapp
  lein install

Then edit your ''~/.lein/profiles.clj'' to include the plugin

 {:user {:plugins [[bn-webapp/lein-template "0.1.0-SNAPSHOT"]]}}

Then you can create a project using the template as follows:

 cd <my-working-directory>
 lein new bn-webapp <project-name>
 lein ring server

Todo

Create default Midje tests

License

Copyright © 2013 Bright North (http://www.brightnorth.co.uk)

Distributed under the Eclipse Public License, the same as Clojure.

About

Bright North Clojure webapp template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published