Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Badger vs Panda.
branch: master

This branch is 3 commits ahead, 3 commits behind codeforamerica:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
static
views
.gitignore
README.md
package.json
postinstall
supervisord.conf

README.md

This project is a voting site for Badgers versus Panda

Basics

Using node.js, the server sets up the following:

  • Socket connect to communicate with client.
  • Client webpage

Installing

This is currently deployable for dotcloud, but could be run in any environment that runs node.js.

Set up Web Application

  1. Install node
  2. Install npm
  3. Run: npm install
  4. Copy example settings and update appropriate values: cp lib/settings.example.js lib/settings.js`
  5. Run once: node lib/db-setup.js
    • If you want to remove all the old votes, run: node lib/db-setup.js --delete-votes
  6. Start server: node lib/server.js

Technologies Used

This would not be possible without all these great, open source projects:

Something went wrong with that request. Please try again.