This is the UI component of our corporate carpool app.
-
Make sure you have
node
andnpm
installed -
Install
gulp
andbower
globally$ npm install gulp -g $ npm install bower -g
-
Checkout sprinkles and install
npm
andbower
dependencies$ cd sprinkles/ $ npm install $ bower install
-
Start the development server (Browserfy options are on port 3001)
$ gulp serve
-
Add your google maps api-key to apps.ts and index.html
key : "API_KEY"
src="https://maps.googleapis.com/maps/api/js?v=3&key=API_KEY&callback=initialize">
```
# How to test
##Unit Tests:
1. Run `npm install`
2. Run `gulp unit-tests`
3. View the code Coverage map in the `coverage` directory
##End-to-End Tests using protractor
1. Run `npm install`
2. Run `./node_modules/protractor/bin/webdriver-manager update` to update the webdriver
3. Make sure that rethinkdb (`rethinkdb --http-port 9090`), wafflecone(`gulp` in wafflecone directory) and sprinkles(`gulp serve` in sprinkles directory) are all running
4. Run `gulp e2e-tests`