CodeBaboon / table-hockey-tracker

1 stars 0 forks source link

table-hockey-tracker

This app will track scores and stats for games of table hockey.

Get up and running locally

Clone the repo, then install dependencies:

npm install

You'll need access to a PostgreSQL instance with an empty database. Then execute the create_table_hockey_db.sql script against it to set things up. You can then set the DATABASE_URL environment variable to point to it:

$ export DATABASE_URL=postgres:///$(whoami)

Finally, kick things off:

npm run startLocal

You should then be able to access the site at http://localhost:3000

Database Changes

When changes are made to the database as part of a pull request the create_table_hockey_db.sql file should be updated. The script can be generated by running the following command:

pg_dump --schema-only --no-owner the_database > create_table_hockey_db.sql

Tech Tour

koa
react
babel \ browserify \ babelify
node-sass \ frau-sass-importer
node-postgres (pg)
q
superagent
vui-*
moment
mustache
mkdirp \ rimraf
travis-ci
docker