Giter Site home page Giter Site logo

cordova-workshop's Introduction

Cordova Workshop#

This is a step by step introduction to building mobile application using Apache Cordova.

Step 1##

In step 1, we just create an index.html file that includes required CSS and JS libraries. This application uses jQuery Mobile for styling and jQuery for DOM manipulation and AJAX calls.

Step 2##

In step 2, we created application user interface using jQuery Mobile. We created a jQuery Mobile page and added a header and listview to render stories. In app.js, we registered for pagecreate event, and made a GET call to fetch stories from hackerpins.com.

Step 3##

In step 3, you created an OpenShift account and created your own hackerpins application backend. Refer to step3/README.md for details.

Step 4##

In step 4, we packaged the application using PhoneGap build cloud service. Refer to step4/README.md for details.

Step 5##

In step 5, we created Apache Cordova application using CLI. We deleted the template code under www directory and replaced it with the code created in step 2. Then we bind to Apache Cordova deviceready event.

Step 6##

In step 6, we improved the application and bind to tap events. In step 5, there was a lag when you clicked on any story. This was fixed in step 6 by using tap events and InAppBrowser.

Step 7##

In step 7, we created the full application with three views -- hot, upcoming, new. Also, we used Mustache for templating rather than injecting HTML fragments.

cordova-workshop's People

Contributors

shekhargulati avatar

Watchers

Rahmat 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.