Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

compojure-template

A Leiningen template for batteries included projects using Compojure.

Subscribe to updates I use compojure-template


Statistics on compojure-template

Number of watchers on Github 49
Number of open issues 0
Average time to close an issue 1 day
Main language Clojure
Average time to merge a PR about 2 hours
Open pull requests 0+
Closed pull requests 0+
Last commit over 2 years ago
Repo Created almost 7 years ago
Repo Last Updated about 2 years ago
Size 38 KB
Organization / Authoryogthos
Contributors6
Page Updated
Do you use compojure-template? Leave a review!
View compojure-template activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating compojure-template for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Compojure-Template

A Leiningen template for projects using Compojure.

This tempate is a batteries included version of the official compojure-template. The template sets up several useful wrappers, such as the ones for serving static resources and handling mime types. It also provides a main for running standalone and a handler for WAR deployment which provides correct context resolution.

Usage

Run the following command to create a new Compojure project:

lein new compojure-app <your project name>

To create a standalone executable from your project inside the project directory:

lein ring uberjar

You can then run the resulting jar as you would with any other Java executable:

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 run:

lein ring uberwar

Then you can 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.

compojure-template list of languages used
Other projects in Clojure