Skip to content

andresdominguez/protractor-meetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample application for the Angular meetup

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

See the slides

Get the code

git clone https://github.com/andresdominguez/protractor-meetup.git

Start Mongo DB

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/

Get Node

Download and install http://nodejs.org/

Install dependencies

~/dev/protractor-meetup$ npm install

Run the server

Run the express server. It will start a server on port 3000.

~/dev/protractor-meetup$ node server.js

See the app

You should be able to see the app in the following URL:

http://localhost:3000/

Test

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

About

Sample angular application that has protractor integration tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published