GithubHelp home page GithubHelp logo

julliette / cordova-angular-ionic Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1008 KB

JavaScript 17.29% Java 58.25% Shell 3.46% Objective-C 18.86% C 0.09% AppleScript 0.11% C++ 0.46% C# 0.47% CSS 1.02%

cordova-angular-ionic's Introduction

cordova-angular-ionic

Baseline installations of the tools needed to develop a combo Cordova/AngularJS/Ionic Framework mobile application. This solution works best in concert with the vagrant-angular-env project.

The bonus feature of this baseline is the ability to build out two sets of end-to-end tests: one with a mock backend and one with a live backend. When run in the appropriate mode, Grunt will configure the index.html and protractor config files to point to the right files. A side effect of this is that changes to these files should be made to the ".template.*" versions and not to the html or js file versions.

This solution includes the following tools:

This assumes that Cordova is installed on the local machine.

Getting set up

Install your node packages and bower libraries:

npm install
bower install

Usage

Run your karma unit tests

grunt test:unit

Run your karma unit tests continuously

grunt karma:watch watch

Run your e2e tests with protractor

This will run the e2e tests against Chromium and FireFox (and eventually, PhantomJS. PhantomJS gives issues after the first run through and is commented out, for now).

This task assumes an external Selenium server. The configuration can be changed in the test/e2e/protractor.conf.base.template.js file.

To run against a MOCK backend

grunt test:e2e_mock

To run against a LIVE backend

grunt test:e2e_live

Run your server

grunt serve

To build for deployment

grunt build

Run this in an emulator

cordova build <ios/android>
cordova emulate <ios/android>

If you experience errors (Windows hosts?)

if you see any errors when running the grunt tasks, run the following command while in the source folder:

npm ls

This may tell you that there are unmet dependencies. Manually install those dependencies:

npm install [email protected]
npm install graceful-fs@~2.0.0

cordova-angular-ionic's People

Contributors

julliette avatar

Stargazers

 avatar

Watchers

 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.