Skip to content

Commit

Permalink
Merge remote branch 'cmeier/master' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	project.clj
	src/foreclojure/data-set.clj
  • Loading branch information
amalloy committed Apr 19, 2011
2 parents f0592e6 + e8c40b0 commit aa28584
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
28 changes: 28 additions & 0 deletions README.md
@@ -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



3 changes: 3 additions & 0 deletions load-data.sh
@@ -0,0 +1,3 @@
project_classpath=`lein classpath`
echo $project_classpath
java -cp $project_classpath clojure.main ./src/foreclojure/data-set.clj
6 changes: 4 additions & 2 deletions project.clj
Expand Up @@ -9,5 +9,7 @@
[congomongo "0.1.3-SNAPSHOT"]
[org.jasypt/jasypt "1.7"]
[amalloy/utils "[0.3.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})
2 changes: 1 addition & 1 deletion src/foreclojure/data_set.clj
Expand Up @@ -3,7 +3,7 @@

(defn load-problems []
(do

(mongo! :db :mydb)
(insert! :problems
{:_id 1
:title "Nothing but the Truth"
Expand Down

0 comments on commit aa28584

Please sign in to comment.