This is a sample angular application that has protractor integration tests.
Here are the instructions to run the code from the meetup.
Assume that the code is under ~/dev/protractor-meetup
git clone https://github.com/andresdominguez/protractor-meetup.git
Download Mongo DB from http://www.mongodb.org/
Create a directory to hold the data and start mongo:
~/dev/protractor-meetup$ mkdir db
Start Mongo DB with the dbpath flag
~/Downloads/mongodb-osx-x86_64-2.4.8/bin$ ./mongod --dbpath ~/dev/protractor-meetup/db/
Download and install http://nodejs.org/
~/dev/protractor-meetup$ npm install
Run the express server. It will start a server on port 3000.
~/dev/protractor-meetup$ node server.js
You should be able to see the app in the following URL:
Start the selenium standalone server
./node_modules/protractor/bin/webdriver-manager update
./node_modules/protractor/bin/webdriver-manager start
Run the protractor tests.
~/dev/protractor-meetup$ ./node_modules/protractor/bin/protractor protractor-config.js
Run the unit tests
~/dev/protractor-meetup$ karma start