A little web-based Clojure REPL powered by clojail.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 43 commits ahead, 7 commits behind Raynes:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources
src
test/tryclojure
.gitignore
.gitmodules
.travis.yml
Procfile
README.md
epl-v10.html
example.policy
project.clj

README.md

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.