Houston. We have commits coming in.
CSS JavaScript Python Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
css
docs
fonts
headsupper
images
src/js
.coveragerc
.dockerignore
.editorconfig
.eslintrc
.gitignore
.travis.yml
Dockerfile
LICENSE
Procfile
README.md
TODO
docker-compose.yml
index.html
manage.py
package.json
replay.py
requirements.txt
run_coverage.sh
setup.cfg
setup.py
tox.ini
webpack.config.js
webpack.production.config.js

README.md

headsupper

Build Status

Coverage Status

Demo

I did a demo of this at the November Mozilla Beer & Tell

Blog post

Here's the blog post about the launch of Headsupper.io.

Run the tests

To run the tests first install mock (pip install mock) then run:

python manage.py test

If you want to run the full suite, with flake8 and coverage, you may use tox. This will run the tests the same way they are run by travis):

pip install tox
tox

The .travis.yml file will also run coveralls by default.

If you want to benefit from Travis and Coveralls, you will need to activate them both for your project.

Oh, and you might want to change the "Build Status" and "Coverage Status" links at the top of this file to point to your own travis and coveralls accounts.

Test coverage

First pip install coverage then run:

coverage run ./manage.py test

Then to see the report run:

coverage html
open htmlcov/index.html

Or, just run:

./run_coverage.sh
open htmlcov/index.html

Build the production bundle

This has nothing to do with Django. This is pure npm:

npm run deploy

That'll create a dist/bundle.js monster with all the Javascript you need.

Heroku

(These instructions are not maintained!)

  1. heroku create
  2. heroku config:set DEBUG=False ALLOWED_HOSTS=.herokuapp.com, SECRET_KEY=something_secret DATABASE_URL gets populated by heroku once you setup a database.
  3. git push heroku master