An alternative Ludum Dare entries viewer.
Find a file
2014-01-19 20:36:56 +01:00
prototypes/layout Added the layout prototype 2014-01-06 12:08:44 +01:00
resources/public Clean up some stuff and make it uberwar compatible 2013-10-06 18:08:50 +02:00
src Some more documentation 2014-01-19 20:36:56 +01:00
.gitignore Clean up some stuff and make it uberwar compatible 2013-10-06 18:08:50 +02:00
Procfile Initial commit 2013-09-28 10:40:54 +02:00
project.clj Some more documentation 2014-01-19 20:36:56 +01:00
README.mkd Some more documentation 2014-01-19 20:36:56 +01:00

Installation

Check out the source and run lein deps in the root folder to fetch all dependencies. This takes a couple of seconds. After that, you can run the server with lein ring server-headless. Now you can verify that nothing went wrong if you open up the browser and visit http://0.0.0.0:3000/. There should be nothing displayed because we doesn't fetch any data yet. If that works, we can proceed with the next step and import data. You can leave the terminal open or start the server just from the repl (preferred way).

Run a repl with lein repl in another terminal. Here we can start the server, initiate the database and run the scrape process. First we start the server (if not allready done)

(use 'ldview.repl)
(ldview.repl/start-server)

Next, we set up the database and start the fetching process. This take a little time, so make yourself a cup of tea and be proud of yourself to get this far :)

(use 'ldview.tasks.runner)
(ldview.tasks.runner/load-competition 27 "10 Seconds")

Development

Sure, you want to make some changes on the code. It's clojure, it will be fun. The server is allready online and serving html pages. If you making changes on the code, the browser automatically reload the page after every code change. If you want to reload the code in the repl after making some changes, use :reload-all in addition to the use function.