-
Be sure you have Node.js installed.
$ node --version
It should be at least version 4.
-
Clone this repository.
$ git clone https://github.com/drivecapital/horizon.git
-
Move to the examples directory.
$ cd horizon/examples -
Install the development server.
$ npm install
-
Copy
chat/auth.example.jsto a new file namedchat/auth.jsand substitute your auth token from the link inchat/auth.example.js. -
Start the development server from the
examplesdirectory.$ node run.js chat
-
Open localhost:8000 and start chatting!
You can run any of the other examples by repeating steps 5 and 6 above for that example.
Your goal is to build the rest of the jennings example, named after Ken Jennings. You should be able to read clues from the clues collection, and submit your answers to the responses collection.
-
Kill the chat server from before.
-
Add your auth token to the
jenningsexample as described before. -
Start the development server and point it at the
jenningsexample.$ node run.js jennings
There's already a skeleton app in the directory. Information on the data you have access to is included in jennings/app.js.
