The State of Reagent

December 1, 2014

I'm happy to report that Dan Holmsand has graciously agreed to move Reagent to a GitHub Organization called the reagent-project. The organization will help spread the work as well as provide a hub for all the related projects. There has been a lot of recent interest in the org and several projects have already migrated under the umbrella.

First, I'd like to mention the reagent-cookbook project that provides many recipes for accomplishing common tasks, such as Js library integration, using Reagent. The project provides clear and simple guidelines for contributing to help ensure that all recipes have a common format that's easy to follow. Next addition is the Historian project that provides drop-in undo/redo functionality for Reagent. World Singles has recently switched from Om to Reagent and Sean Corfield has added reagent-cursor library for Om-like cursor support in the process. Finally, there is my own reagent-forms library for creating data bindings using Reagent.

New Reagent projects can now be easily created and run using the reagent-template as follows:

lein new reagent my-app
cd my-app
lein cljsbuild auto &
lein ring server

The template will generate a Clojure/Clojurescript web app that's designed to get you up and running without any tedious setup. The resulting project is setup to use Figwheel for live code reloading and weasel for the REPL enabling smooth development out of the box.

The template uses sane library and configuration choices across the stack with Reagent for the UI, Secretary for client side routing, and the Ring/Compojure stack on the backend.

The dev server and packaging are handled by lein-ring that will take care of reloading changes during development and producing either an uberjar or an uberwar for running standalone or deploying to a container respectively. The project also contains a Procfile for instant Heroku deployment. For more details, please visit the project page here.

As you can see, much has happened with Reagent in the past month and the future is looking very bright. If you haven't tried Reagent yet, there's never been a better time than now. :)

Copyright © Dmitri Sotnikov

Powered by Cryogen