a template project for the Luminus framework
CSS Clojure
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1340 commits behind luminus-framework:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/leiningen/new
.gitignore
README.md
project.clj

README.md

Luminus-Template

A Leiningen template for projects using Luminus.

The template initializes a base Luminus application.

Requirements

Luminus requires Leiningen version 2.x

Usage

The Luminus template ships out of the box with your latest Leiningen. Run the following command to create a new Luminus project which uses the default profile template:

lein new luminus <your project name>

However, if you would like to attach further functionality to your template you can append profile hints for these extended features:

  • +bootstrap adds Twitter Bootstrap CSS/JS static resources
  • +cljs adds ClojureScript support to the project along with an example
  • +h2 adds models.db namespace and H2 database dependencies
  • +postgres adds models.db namespace and add PostreSQL database dependencies
  • +mysql adds models.db namespace and add MySQL/MariaDB database dependencies
  • +site registration/authentication, uses +bootstrap and +h2 by default
  • +dailycred combined with +site it uses DailyCred to authenticate
  • +http-kit - adds the fast HTTP Kit web server to the project

To add a profile simply pass it as an argument after your application name, e.g.:

lein new luminus myapp +bootstrap

You can also mix multiple profiles when creating the application, e.g.:

lein new luminus myapp +site +postgres

To build as a executable Java ARchive (JAR) standalone, run the following command:

lein ring uberjar

To run the resulting standalone executable .jar file, do as you would with any other:

user$ java -jar target/myapp-0.1.0-SNAPSHOT-standalone.jar

2012-12-15 19:17:23.471:INFO:oejs.Server:jetty-7.x.y-SNAPSHOT
2012-12-15 19:17:23.512:INFO:oejs.AbstractConnector:Started
SelectChannelConnector@0.0.0.0:8080
Server started on port [ 8080 ].
You can view the site at http://localhost:8080

To build a WAR (or Web application ARchive) file run:

lein ring uberwar

You can then easily deploy the resulting WAR to Tomcat or any other Java application server.

License

Copyright © 2012 Yogthos

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