Interactive music game based off of Cards Against Humanity
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
controllers
models
public
routes
views
.gitignore
README.md
app.js
helper_funcs.py
package-lock.json
package.json
populatedb.js

README.md

music-for-humanity

Get started

1. Download and install

brew install node
npm install -g nodemon

2. Install dependencies

npm install

3. Start the node server

npm start

or

nodemon start

If you use the nodemon command, your process will automatically restart when your code changes.

Developer Notes

The JavaScript for the player interface is located in public/javascripts/player.js. Every time you make a change to this file, remember to run

browserify player.js -o player_bundle.js; browserify judge.js -o judge_bundle.js; browserify round_results.js -o round_results_bundle.js

from within the public/javascripts/ directory so that the node module dependencies are included in the bundle.js script.

Or, you may run

npm run build-js

An alternative is to run

npm watch-player-js

and

npm watch-judge-js

and

npm watch-round-results-js

in separate processes (e.g. two separate Terminal windows). This will automatically generate the player_bundle.js and judge_bundle.js files as you make changes to the player.js and judge.js files.