Skip to content

danielsz/back-end-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Clojure à-la-carte

Leiningen template to kickstart Clojure applications with REPL-controlled dependencies (startable, stoppable). Based on Stuart Sierra's reloaded pattern.

Includes out-of-the box support for:

  • Datomic
  • MongoDB
  • RabbitMQ
  • Jetty webserver
  • Remote REPL

Usage

$ lein new back-end-template my-app

Define your environments in application.clj

During development, type (user/go), (user/stop) and (user/reset) in the REPL.

In production, the -main entry point takes care of starting the system.

In both environments, the components are accessible from the system map, which you can retrieve with (system-map) (after referring it from the my-app.framework.utilities namespace).

That's it!

Contributing

Please fork and issue a pull request to add more components. Please don't forget to include tests. You can refer to the existing ones to get started. Thank you!

About

Clojure back end template with components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published