Clojure Webapps, Practical.li

Clojure logo

This is an introduce to developing server-side web applications using the Clojure programming language. The aim is to present Clojure in a simple to understand and highly practical way for developers of any of experience.

This workshop guides you through the basics of server-side web development and helps you understand the modular approach to using Clojure effectively. Along the way the relevant functions and design approaches common in Clojure will be highlighted.

Requirements

You will need the following in order to complete this workshop. The setup contains details on how to get your environment ready

  • A working Java runtime environment (JRE) - test with java -version in a command line window
  • Leiningen - test with lein version in a command line window
  • A Clojure aware editor with REPL
  • A Git client (optional)
  • A free Heroku account for running Postgres database (alternatively install Posgtres database on your laptop)

Code for the workshop

The code for this workshop is contained in the Github repository Clojure Webapps example, the code for each section is in a specific branch.

To get a copy of the repository, use the following git clone command which creates a new directory called clojure-webapps-example that contains the cloned code.

git clone https://github.com/practicalli/clojure-webapps-example.git

Once you have the repository, use git checkout branch-name to get the code for each section. Each branch is a working application with all the features covered in that section

Use git branch to show all the branches available, they should match the names of the sections in this workshop.

Enjoy.

Additional Resources

Here are some resources outside of this workshop that can help you learn more about Clojure

Getting Started

Clojure

Tooling

Community

Books & Tutorials

Web Frameworks (templates)

  • luminus - a production ready app template
  • duct - simple, minimal production-grade framework
  • pedestal-service - an opinionated, extensible & scalable framework
  • Luminus - a leingingen template based on Ring & Compojure, with many options
  • Duct - a leiningen template by the author of Compojure, with many options
  • Pedistal - front-end framework & server-side web app framework

Database


Creative Commons License
Practicalli, Clojure WebApps by John Stevenson is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at practical.li.

results matching ""

    No results matching ""