This repository has been archived by the owner. It is now read-only.
Boilerplate to create a Heroku ready Gulp managed web app using the M.A.D. (MongoDB/AngularJS/Django) stack
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.
app
gulp
test
.bowerrc
.buildpacks
.env-common
.env-local
.gitignore
Procfile
README.md
bower.json
export_env.sh
gulpfile.js
manage.py
package.json
requirements.txt
setup.sh

README.md

Setup

apt-get install mongodb npm

# Install gulp & Python dependencies globally. MUST BE RUN AS ROOT!
sudo ./setup.sh --global

# Install node dependencies and bower dependencies from scratch.
./setup.sh

Heroku setup.

heroku buildpacks:set https://github.com/ddollar/heroku-buildpack-multi.git
heroku config:set NODE_ENV=production

Gulp tasks

gulp build # Build project with uglification.
gulp bump --type=patch|minor|major # Bump application version.
gulp runserver # Only runs the Django server.
gulp start # Builds the app and then runs the server and watches for changes in parallel.
gulp test # Run all tests.
gulp test-karma [--watch] # Run karma tests. '--watch' keeps running tests after each file change.
gulp test-protractor [--test-protractor-path=PROTRACTOR_TEST_PATH] # Run protractor tests.
gulp test-py # Run all python tests.
gulp test-py-integration # Run python integration tests.
gulp test-py-unit # Run python unit tests.
gulp test-unit # Run karma and python unit tests.
gulp watch # Builds the project and watches for changes but disables uglification.

Tricks.

Load environment before running commands like './manage.py'.

. export_env.sh test|local|dev|prod