vagrant up
fab dev run_serverfab dev updateFrom the geosurvey project directory
sudo npm install -g yo grunt-cli bower
npm install && bower install --dev
npm install generator-angular generator-karmaRun all of these in seperate tabs/windows
The app will be served on port 9000. A browser window will open automatically.
grunt serverWith the server running in port 9000, run the following commands for continuous test running.
Unit tests will run whenever you save a file:
grunt c-unitEnd to end tests will run whenever you save a file:
grunt c-e2eAdd a new route, view, controller, unit test:
yo angular:route myRouteBecause the app is being served out of the django app we need to specify a path for the controls and templates. Here is an axample route:
.when('/RespondantDetail', {
templateUrl: '/static/survey/views/RespondantDetail.html',
controller: 'RespondantDetailCtrl'
})#Heroku ##requirements
- Install the heroku toolbelt.
- Install git > 1.8
##create the heroku app heroku create appname
##push the app if it is in a directory git subtree push --prefix server/ heroku master
##django install heroku run python manage.py syncdb --settings=config.environments.heroku heroku run python manage.py migrate --settings=config.environments.heroku
##open the app heroku open