java-tutorials/clojure/ring
Eric Martin 7c2d7a58c3 Merge pull request #7980 from SmartyAnsh/master
BAEL-1871 - Spring Data Geode
2019-10-24 21:16:35 -05:00
..
src/ring Merge pull request #7980 from SmartyAnsh/master 2019-10-24 21:16:35 -05:00
.gitignore Merge pull request #7980 from SmartyAnsh/master 2019-10-24 21:16:35 -05:00
README.md Merge pull request #7980 from SmartyAnsh/master 2019-10-24 21:16:35 -05:00
project.clj Merge pull request #7980 from SmartyAnsh/master 2019-10-24 21:16:35 -05:00

README.md

Clojure Ring Examples

This project acts as a set of examples for the Clojure Ring library.

Runing the examples

The examples can all be run from the Leiningen REPL.

Firstly, start the REPL with lein repl. Then the examples can be executed with:

  • (run simple-handler) - A simple handler that just echos a constant string to the client
  • (run check-ip-handler) - A handler that echos the clients IP Address back to them
  • (run echo-handler) - A handler that echos the value of the "input" parameter back
  • (run request-count-handler) - A handler with a session that tracks how many times this session has requested this handler

In all cases, the handlers can be accessed on http://localhost:3000.

Relevant Articles