luminus-framework/luminus-template

Name: luminus-template

Owner: luminus-framework

Description: a template project for the Luminus framework

Created: 2012-12-24 00:44:06.0

Updated: 2018-01-19 12:17:02.0

Pushed: 2018-01-19 14:58:23.0

Homepage: http://www.luminusweb.net/

Size: 2142

Language: Clojure

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Luminus-Template

A Leiningen template for projects using Luminus.

The template initializes a base Luminus application.

Requirements

Luminus requires Leiningen version 2.5.3+

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:

 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:

alternative servers
databases
service API
ClojureScript
misc

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

 new luminus myapp +cljs

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

 new luminus myapp +auth +postgres

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

 uberjar

Or if using the +boot profile:

 uberjar

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

$ java -jar target/myapp.jar
ep-14 16:06:21 APc47d.4f39.65e6.uhn.ca INFO [myapp.handler] -
yapp started successfully]=-
6:21.685 INFO  [org.projectodd.wunderboss.web.Web] (main) Registered web context /
ep-14 16:06:21 APc47d.4f39.65e6.uhn.ca INFO [myapp.core] - server started on port: 3002
Performance Testing

The app can be stress tested by running the Apache benchmark command:

c 10 -n 1000 http://127.0.0.1:3000/

The memory and CPU usage can be inspected by running either jconsole or jvisualvm and attaching them to a running Luminus server.

Other Templates

There is also a public comparison chart of the common templates.

License

Copyright © 2016 Dmitri Sotnikov

Distributed under the MIT License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.