Skip to content

ray1729/tryclojure

 
 

Repository files navigation

tryclojure

TryClojure is a online Clojure REPL written using Noir and Chris Done's jquery console (you're awesome, Chris).

Usage

To run it locally, use lein ring server.

Online

The original version of the tutorial is available at: http://tryclj.com

We are running an instance of the extended tutorial on EC2:

http://ec2-54-77-13-3.eu-west-1.compute.amazonaws.com:8801/

Amazon EC2 setup notes

Installed Ubuntu 14.04 LTS 64-bit AMI, login and:

sudo apt-get install openjdk-7-jdk
cd $(mktemp -d)
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
chmod 0755 lein
sudo cp lein /usr/local/bin
lein version
sudo apt-get install git
sudo adduser --system tryclj --group --disabled-login --home /opt/tryclojure
cd /opt/tryclojure
sudo -u tryclj git clone https://github.com/ray1729/tryclojure.git
sudo -u tryclj mkdir tryclojure/logs
sudo sh -c 'cat > /etc/init/tryclj.conf' <<EOT
# tryclj - Try Clojure Ring Server
#

description     "TryClojure Ring Server"

start on filesystem or runlevel [2345]
stop on runlevel [!2345]

respawn
respawn limit 10 5
umask 022

#console none

exec su tryclj -s /bin/bash -c "cd /opt/tryclojure/tryclojure && lein ring server-headless"
EOT
sudo service tryclj start

Credits

apgwoz: Design

License

Licensed under the same thing Clojure is licensed under: the EPL, of which you can find a copy at the root of this directory.

About

A little web-based Clojure REPL powered by clojail.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.3%
  • Clojure 32.2%
  • CSS 13.5%