Skip to content

Evolving Demo first performed at the 2015 View Source conference, most recently performed at Waffle.js

License

Notifications You must be signed in to change notification settings

MylesBorins/harmonic

Repository files navigation

Harmonic

Made with sound and <3

Dev

$ 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

Prod

$ npm start

  • build project
  • uglify
  • minified css
  • Start Basic Express Server
    • Server is running on port 3000
  • Start Basic Socket Server

Testing

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

App Engine

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

Docker

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

GCP and kubernetes

$ 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

Notes

License

MIT ~ check LICENSE

About

Evolving Demo first performed at the 2015 View Source conference, most recently performed at Waffle.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published