ldview/README.mkd

41 lines
1.6 KiB
Markdown
Raw Permalink 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
2014-01-19 20:36:56 +01:00
with the next step and import data. You can leave the terminal open or start the
server just from the repl (preferred way).
2014-01-18 00:02:17 +01:00
2014-01-19 20:36:56 +01:00
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)
2014-01-18 00:02:17 +01:00
2014-01-19 20:36:56 +01:00
(use 'ldview.repl)
2014-01-19 01:09:59 +01:00
(ldview.repl/start-server)
2014-01-18 00:02:17 +01:00
2014-01-19 20:36:56 +01:00
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 :)
2014-01-18 00:02:17 +01:00
2014-01-19 20:36:56 +01:00
(use 'ldview.tasks.runner)
(in-ns 'ldview.tasks.runner)
(wipe-all!!)
(load-competition 28)
2014-01-19 20:36:56 +01:00
# Development
2014-01-20 21:55:31 +01:00
You want to make some changes on the codebase? Sure you will, it's clojure!
2014-01-19 20:36:56 +01:00
The server is allready online and serving html pages. If you making changes on
2014-01-20 21:55:31 +01:00
the code, the browser automatically reload the page after every code change and
the repl reloads the code after saving. This is verry handy if you like interactive
development. If you in doubt of a good editor, use emacs with the clojure-mode
and cider-mode. Use `M-x cider-jack-in` to run the repl from the editor.
# Authors
We are two brothers having fun with games in our rare sparetime. We put the
2014-06-10 23:46:16 +02:00
stuff we do and made on http://arg-games.net/ eventually :)