Hi,
Juan and I have deployed the latest modular and cylon releases to clojars.
Both of these projects contain pre-built components that can be used in a Clojure project following the workflow and component-based approach Stuart Sierra has recommended.
You don't need to download anything, because the functionality is built into Leiningen already. To create a simple Clojure-powered website, do this
$ cd /tmp
$ lein new modular myapp
$ cd myapp
$ lein run
You can also add various options to determine what kind of project gets generated. For example, here's how to generate the same site with a login page, and run using the repl
$ cd /tmp
$ lein new modular my-secure-app +cylon/login
$ cd myapp
$ lein repl
nREPL server started on port 56307 on host 127.0.0.1
REPL-y 0.3.0
Clojure 1.6.0
Type (dev) to start
user=> (dev)
#<Namespace dev>
dev=> (go)
Adding user 'dev' with password: Zl6OrGs
:ok
dev=>
Now browse to
http://localhost:3000 and you should see a Login link in the menu bar. Login with user 'dev' and with the password shown in the repl (the dev user is only added when you run a dev system)
In the future we are planning to make all the modular components available and provide more flexibility in the initial project generation step. Also, the Cylon integration has much more in the pipeline, including an OAuth2 client, OAuth2 server, totp-based multi-factor authentication and role-based authorization.
Bear in mind that unlike most template generated projects, modular projects are based on the component pattern and are easy to change post-generation via the system.clj namespace, so the 'lein new modular' step is just to help beginners get started more quickly.
If you have any comments, questions or general feedback, please post to this group.
Thanks,
Malcolm