Skip to content
Webjars + Ring + Om leiningen template
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/leiningen/new
.gitignore
README.md
project.clj

README.md

lein new wrom

Webjars + Ring + Om Template.

The goal of this template is to provide a playground for myself to try out Om snippets. I use webjars, so that once the React dependency is downloaded, I can create new projects without having to connect to the internet. Yes, sometimes I am offline, for example during commutes.

Features

This template provides:

  • ring + jetty for server side code
  • core.async
  • clojurescript
  • cljs-http for ajax requests
  • Om + React
  • sample application with:
    • a ring handler on the server that returns a message
    • an Om component that fetches the message from the server and renders it

Usage

To create a new project:

lein new wrom foo

In one terminal:

cd foo
lein cljsbuild auto

Changes to Clojurescript (.cljs) code will automatically be compiled when files change. You will need to refresh the browser to see the changes.

In another terminal:

cd foo
lein ring server

A browser window will automatically open. If not, go to http://localhost:8090/index.html.

Changes to Clojure (.clj) code will automatically be compiled upon browser request.

License

Copyright Michiel Borkent

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

You can’t perform that action at this time.