ldview/README.mkd

20 lines
754 B
Markdown
Raw Normal View History

2014-01-19 01:09:59 +01:00
# Installation
2014-01-18 00:02:17 +01:00
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
2014-01-19 01:09:59 +01:00
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.
2014-01-18 00:02:17 +01:00
2014-01-19 01:09:59 +01:00
Run a repl with `lein repl` in another terminal. Here we start the
server, initiate the database and run the scrape process.
2014-01-18 00:02:17 +01:00
(load-file "src/ldview/repl.clj")
2014-01-19 01:09:59 +01:00
(ldview.repl/start-server)
2014-01-18 00:02:17 +01:00
2014-01-19 01:09:59 +01:00
(load-file "src/ldview/tasks/runner.clj)
(in-ns 'ldview.tasks.runner)
(load-competition 27 "10 Seconds")
2014-01-18 00:02:17 +01:00