Giter Club home page Giter Club logo

clojure-maven-war-example's Introduction

Clojure-Maven-WAR-Example

Example of a clojure maven project that generates a war using the maven-clojure-plugin

It includes:

  • A repl with autoreload for development, both when running tests with clojure.test/run-test and before serving any request.
  • Midje for testing.
  • web.xml configuration using ring-java-servlet to avoid aot compilation.
  • Start up and shutdown functions to be executed when webapp start and stops.
  • pomegranate to add new libraries without restarting the repl.
  • Log4j configuration, including automatic refresh when the log4j config file changes.

Basic Usage

Run mvn package to generate the war.

Run mvn clojure:repl to start a repl with a Jetty server with autorefresh. The application will be available at http://localhost:8080/war-example/.

Run unit tests with clojure.test (run-all-tests) or (run-test).

Add dependencies with (add-dep '[[incanter "1.2.3"]])

Reload all modified namespaces with (reload-changed-files)

clojure-maven-war-example's People

Contributors

dlebrero avatar

Stargazers

 avatar

Forkers

sivashankar1989

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.