Giter Club home page Giter Club logo

protractor-meetup's Introduction

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

protractor-meetup's People

Contributors

andresdominguez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.