Skip to content

luckyape/Metis

 
 

Repository files navigation

VotingInfoApp

Voting Information Project web app.

Learn more

Prerequisites

  • Node.js
  • Grunt
    • Install Grunt CLI npm install -g grunt-cli
  • Bower
    • Intall Bower npm install -g bower

Getting Started

  1. Download node.js modules using npm install
  2. Download libraries using bower install
  3. Run the app with node app.js

Available Grunt Commands

  • grunt sass - compile Sass files to css
  • grunt gjslint - run the Closure Linter to inspect our JavaScript files
  • grunt watch - watch for changes to the Sass and HTML files and automatically reload the page in your browser (requires LiveReload or LiveReload Chrome extension)

Adding a User Account in Crowd

  1. Log into the Crowd Server (link coming sooon)
  2. Click on Users tab
  3. Click on Add User in sidebar
  4. Enter user information and click Create button, which should take you to details for the new user
  5. Add the user to vip-user group and click Update

For more information see the Crowd Admin Guide.

Running Karma Unit Tests

  1. install karma
npm install karma
  1. run karma
karma start _name of config file_

WebStorm also has a built in build configuration for karma which breaks down each test. Karma is configured to use chrome as the default browser.

Running Functional Tests

  1. Give permissions to RunFunctional.sh
chmod +x RunFunctional.sh
  1. Double click or run through terminal using
./RunFunctional.sh

Running Jasmine-Node Unit Tests

  1. install jasmine-node
npm install jasmine-node -g
  1. Run Unit Tests
jasmine-node public/test/nodeUnit

About

Voting Information Project web app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published