/untangled-cookbook

A set of projects demonstrating specific recipes for constructing applications.

Primary LanguageClojure

Untangled Cookbook

This cookbook is intended to cover use-cases of how to do common tasks for single-page webapps using the Untangled Web Framework.

The recipes themselves are in the recipes subdirectory, and each has a recipe README.md. This document acts as an index of them.

Each of them is set up for use in IntelliJ, emacs, or vim. They can also be started from a plain command line.

PLEASE ADD/VOTE FOR THE TOPICS BELOW VIA THIS LINK

Running Recipes

Each recipe has a project file. You can run them in the environment of your choice. The basic idea is to use a plain clojure main REPL for figwheel, and any kind of REPL for the server. The servers in the full-stack recipes are pre-configured to appear at port 8080. No need to create a config file separately.

Running Figwheel:

lein run -m clojure.main script/figwheel.clj

If the recipe has only a UI, then browse to: http://localhost:3449. If the recipe is full-stack, continue to the next section.

Running the server:

lein run -m clojure.main
user> (go)

You should now be able to see the app at: http://localhost:8080.

Recipes

UI

Security

  • Server-side security for UI-generated queries
  • Integrate OAuth/OpenID for authentication

Full-stack Interactions

Server push

Server-side