GithubHelp home page GithubHelp logo

cybind / travelly Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 16.69 MB

PhoneGap application for travelers

License: MIT License

JavaScript 64.18% Java 7.60% CSS 22.06% Shell 0.16% Objective-C 4.30% C 0.02% C++ 0.39% C# 0.85% Ruby 0.01% Makefile 0.18% HTML 0.16% Batchfile 0.06% QML 0.03%

travelly's Introduction

Travelly

It is an example from the book "PhoneGap by Example".

Installation Prerequisites

iOS setup

In order to be able to run the application being developed in iOS Simulator or on an iOS device connected to our computer, we need the following:

  • OS: Mac OS X
  • IDE: Xcode (6.0 and newer)
  • iOS SDK

You can download Xcode from https://developer.apple.com/xcode/downloads/ and iOS SDK from https://developer.apple.com/ios/download/

The only disappointment when developing for iOS with the ability to debug on your computer is a limitation of the operating system by Apple. Unfortunately, it only must be Mac OS X operating system.

Android Setup

Setting up the project to run the application on Android platform looks a little bit easier. But also has its complexity. To run the application in the Android simulator or on Android device connected to our computer, we need the following:

  • OS: Linux or Windows or Mac
  • Java: Oracle JDK
  • IDE: Android Studio
  • Android SDK

Clone

After that you can clone this repo and we can run the application.

Running

  • Open Xcode project travelly/platforms/ios/Travelly.xcodeproj
  • Select the intended device from the toolbar's Scheme menu
  • Press the Run button that appears in the same toolbar to the left of the Scheme. That builds, deploys and runs the application in the emulator. A separate emulator application opens to display the app.

A similar procedure can be done with the help of Cordova CLI.

$ cordova build ios

This generates ios platform-specific code within the project's platforms subdirectory. The cordova build command is a shorthand for the following:

$ cordova prepare ios
$ cordova compile ios

To run our application in iOS emulator it is enough to execute the following command:

$ cordova emulate ios

And we see the same application in the emulator that we saw when run from XCode.

travelly's People

Contributors

cybind avatar

Stargazers

Zhu Zhong (钟柱) avatar

Watchers

 avatar Zhu Zhong (钟柱) 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.