Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.47 KB

README.md

File metadata and controls

59 lines (36 loc) · 1.47 KB

Drive Capital Hack Night

Chat Example

  1. Be sure you have Node.js installed.

    $ node --version

    It should be at least version 4.

  2. Clone this repository.

    $ git clone https://github.com/drivecapital/horizon.git
  3. Move to the examples directory.

    $ cd horizon/examples
  4. Install the development server.

    $ npm install
  5. Copy chat/auth.example.js to a new file named chat/auth.js and substitute your auth token from the link in chat/auth.example.js.

  6. Start the development server from the examples directory.

    $ node run.js chat
  7. Open localhost:8000 and start chatting!

You can run any of the other examples by repeating steps 5 and 6 above for that example.

Jeopardy!

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.

  1. Kill the chat server from before.

  2. Add your auth token to the jennings example as described before.

  3. Start the development server and point it at the jennings example.

    $ 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.