$ npm run dev
- Start Watchify (browserify on changes to js)
- Watch changes to stylus
- Start Basic Express Server
- Server is running on port 3000
- Start Basic Socket Server
$ npm start
- build project
- uglify
- minified css
- Start Basic Express Server
- Server is running on port 3000
- Start Basic Socket Server
$ npm test
OMG TESTS PASS # not actual message
This project has a series of unit(ish) tests. Currently API calls are not stubbed out, which could be done with sinon + rewire. The stack uses a module called smokestack, which will execute any code piped to it and pipe the output to STDOUT.
The tests are all written in tape. The blog post Testing JavaScript Modules with Tape does a great job of explaining why tape is awesome!
To deploy this app with app engine run
gcloud app deploy
An app.yaml is included with all the configuration you need to get going
Clone this repo, and create a local.json.
Build a container:
docker build -t harmonic .
Run the container:
docker run -d --name harmonic -p 3000:80 harmonic
$ gcloud container clusters create harmonic
$ gcloud container builds submit --tag gcr.io/$DEVSHELL_PROJECT_ID/harmonic:2.0 ./
$ kubectl apply -f service.yaml
$ kubectl apply -f deployment.yaml
MIT ~ check LICENSE