Skip to content
 
 

Repository files navigation

Server

vagrant up
fab dev run_server

to update

fab dev update

Install Requirements

From the geosurvey project directory

sudo npm install -g yo grunt-cli bower
npm install && bower install --dev
npm install generator-angular generator-karma

Launching Server

Run all of these in seperate tabs/windows

The app will be served on port 9000. A browser window will open automatically.

grunt server

Running Tests

With 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-unit

End to end tests will run whenever you save a file:

grunt c-e2e

Using the angular app generator

Add a new route, view, controller, unit test:

yo angular:route myRoute

Because 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

  1. Install the heroku toolbelt.
  2. 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

About

geosurvey

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages