All Projects → borkdude → lein-new-wrom

borkdude / lein-new-wrom

Licence: other
Webjars + Ring + Om leiningen template

Programming Languages

clojure
4091 projects
CSS
56736 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].