Sha256: e0e36ed8647810cace2fba6807a34095a0106d6787c833153840a3ddcd5e9d46

Contents?: true

Size: 1.96 KB

Versions: 4

Compression:

Stored size: 1.96 KB

Contents

= Shopify application generator for Rails 3.2

== Description

This gem makes it easy to get a Rails 3.2 app up and running with the
Shopify API.

The generator creates a basic login controller for authenticating with your
shop and a HomeController which displays basic information about your
products, orders and articles.

<i>Note: It's recommended to use this on a new Rails project, so that the
generator won't overwrite/delete some of your files.</i>

== Installation

    # Add the gem shopify_app to your Gemfile
    $ echo "gem 'shopify_app'" >> Gemfile
    $ bundle install

== Usage

    $ rails generate shopify_app your_app_api_key your_app_secret

If you don't have an API key yet, create a Shopify Partner account at
http://shopify.com/partners and create an app. You can also create test shops
once you're logged in as a partner.

When you create your app in the Shopify Partner Account, set the return URL to
<tt>http://localhost:3000/login/finalize</tt>

You can also create a private application that only works for your shop by
visiting https://YOUR-SHOP.myshopify.com/admin/api

=== Example

    $ rails generate shopify_app edffbb1bb793e2750686e6f4647a384a fed5bb18hde3e2750686e6f4647a781a

This will create a LoginController and a HomeController with their own views.

== After running the generator

First, start your application:

    $ rails server

Now visit http://localhost:3000 and install your application in a Shopify store.

After your application has been given read or read/write API permission by the
shop, you're ready to start experimenting with the Shopify API.

== Rails 3.0 Support

Rails 3.0 (as in before the big changes in 3.1) is supported on a branch of our github repo: https://github.com/Shopify/shopify_app/tree/rails_3.0_support

== Questions or problems?

http://api.shopify.com <= Read up on the possible API calls!

https://groups.google.com/forum/#!forum/shopify-api <= Talk to new friends!

http://wiki.shopify.com/Shopify_App_Development <= Edit the docs!

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shopify_app-3.0.1 README.rdoc
shopify_app-3.0.0 README.rdoc
shopify_app-2.1.2 README.rdoc
shopify_app-2.1.1 README.rdoc