Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

technomancy/chortles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chortles

Calculate the magnitude of a given laugh over HTTP and JSON.

Really just used as a demonstration of an HTTP-based remote REPL.

See Debugging Clojure apps with Drawbridge.

Usage

This requires Leiningen 2 on the client side.

To set env vars (pre-requisite):

EXPORT AUTH_USER=flynn
EXPORT AUTH_PASS=reindeerflotilla
EXPORT PORT=5000

To start a web server:

$ lein run

To calculate a laugh:

$ curl http://localhost:5000 -d hahahaha
{"hahahaha": 4, "percentile": 100.0}

To connect a REPL to the running app:

$ lein repl :connect http://flynn:reindeerflotilla@localhost:5000/repl

License

Copyright © 2012 Phil Hagelberg

Distributed under the Eclipse Public License, the same as Clojure.

About

Calculate the magnitude of a given laugh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages