Permalink
Browse files

Adding project setup notes and a script to setup the data store

  • Loading branch information...
1 parent a4488dd commit 19ba64028c3433e634faf38e30e310062a761606 Carin Meier committed Apr 19, 2011
Showing with 335 additions and 296 deletions.
  1. +28 −0 README.md
  2. +3 −0 load-data.sh
  3. +4 −2 project.clj
  4. +300 −294 src/foreclojure/data-set.clj
View
@@ -0,0 +1,28 @@
+# 4Clojure
+
+An interactive problem website for Clojure beginners
+[https://www.4clojure.com](https://www.4clojure.com).
+
+## Setup instructions for running locally
+
+* Download and install [leiningen](https://github.com/technomancy/leiningen).
+* Download and install [mongodb](http://www.mongodb.org/).
+* The project uses [clojail](https://github.com/Raynes/clojail) That
+requires a security policy setup in your home directory. Setup a file
+called .java.policy in your home directory. The contents should
+look like this
+ grant {
+ permission java.security.AllPermission;
+ };
+
+* CD in the project and run "lein deps".
+* Start up your mongodb, if you don't have autostart
+ mongod
+* For the first time use, you will need to load the problem data run
+* the script load-data.sh
+ ./load-data.sh
+* Run lein ring server and the browser should open for you.
+ lein ring server
+
+
+
View
@@ -0,0 +1,3 @@
+project_classpath=`lein classpath`
+echo $project_classpath
+java -cp $project_classpath clojure.main ./src/foreclojure/data-set.clj
View
@@ -8,5 +8,7 @@
[sandbar "0.4.0-SNAPSHOT"]
[congomongo "0.1.3-SNAPSHOT"]
[org.jasypt/jasypt "1.7"]]
- :dev-dependencies [[lein-ring "0.4.0"]]
- :main foreclojure.core)
+ :dev-dependencies [[lein-ring "0.4.0"]
+ [swank-clojure "1.2.1"]]
+ :main foreclojure.core
+ :ring {:handler foreclojure.core/app})
Oops, something went wrong.

0 comments on commit 19ba640

Please sign in to comment.