GithubHelp home page GithubHelp logo

blackwidowmaker / phonegap-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joscas/phonegap-rails

0.0 2.0 0.0 180 KB

Export a rails single page app as a Phonegap project

License: MIT License

phonegap-rails's Introduction

Phonegap::Rails

Dependency Status

This gem provides generators for the Phonegap APIs. It is intended to be used within the scope of single page web applications that have a Ruby on Rails API backend. For example, Ember.js / Rails apps.

This gem will export assets included in the rails project as a Phonegap project. This gem won't be able to export applications where content is generated dynamically by the server (e.g applications making use of eRuby).

Installation

Add this line to your application's Gemfile:

gem 'phonegap-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install phonegap-rails

Initialize:

$ rails g phonegap_rails:install

Edit your config file according to your environment:

config/phonegap_rails.yml

Usage

Create android project

$ rake phonegap:rails:android:create

Perform all steps to create android project and run (connect phone via USB if you want to install on your terminal)

	$ rake phonegap:rails:android:initall

Other useful tasks

Export application application assets to the android Phonegap project

$ rake phonegap:rails:android:export

Build project

$ rake phonegap:rails:android:build

Launch emulator

$ rake phonegap:rails:android:emulate

Clean

$ rake phonegap:rails:android:clean

Log

$ rake phonegap:rails:android:log

Requirements

Export ios project

Xcode must be installed

TODO: This section is still pending implementation

$ rake Phonegap:rails:ios:export

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

phonegap-rails's People

Contributors

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