Public | Automated Build

Last pushed: 7 months ago
Short Description
Voter API AngularJS web client application
Full Description


This project is generated with yo angular generator
version 0.16.0.

Build & development

Run grunt for building and grunt serve for preview.


Running grunt test will run the unit tests with karma.



yo angular voter-client

    |       |    ╭──────────────────────────╮
    |--(o)--|    │    Welcome to Yeoman,    │
   `---------´   │   ladies and gentlemen!  │
    ( _´U`_ )    ╰──────────────────────────╯
    /___A___\   /
     |  ~  |
 ´   `  |° ´ Y `

Out of the box I include Bootstrap and some AngularJS recommended modules.

? Would you like to use Gulp (experimental) instead of Grunt? No
? Would you like to use Sass (with Compass)? No
? Would you like to include Bootstrap? Yes
? Which modules would you like to include? (Press <space> to select, <a> to toggle all, <i> to inverse selection)angular-animate.js, angular-cookies.js, angular-resource.js, angu
lar-route.js, angular-sanitize.js, angular-touch.js


# install dependencies
yarn install
bower install

# fix error with initial generated project
npm install grunt-karma karma karma-phantomjs-launcher karma-jasmine jasmine-core phantomjs-prebuilt --save-dev

# create components
yo angular:route voter
yo angular:service voter


# uses 'serve-static' for development
grunt serve

# uses 'aliv' for development
grunt build && npm start

# uses 'serve-static' for production
grunt build && cd dist
node server.js

# local Protractor testing
webdriver-manager start # first terminal window
protractor protractor.conf.js # second terminal window

# for Protractor with Docker

# install selenium stack
PROJECT_PATH="/Users/garystafford/Documents/projects/voter-services/voter-client" \
  && sh ${PROJECT_PATH}

# run protractor tests from within protractor container
# against running voter client in another container (tests running app)
PROTRACTOR_CONTAINER=$(docker ps | grep protractor | awk '{print $1}')
docker exec -it ${PROTRACTOR_CONTAINER} protractor project/protractor.conf.js

# http://localhost:4444/grid/console?config=true&configDebug=true
# http://localhost:4444/grid/console

# SonarQube SCA
grunt sonarRunner
Docker Pull Command
Source Repository