Shopify Application Development

Book Description

Build highly effective Shopify apps using the powerful Ruby on Rails framework

In Detail

Shopify is an e-commerce website platform that allows merchants to create and run their own online store. The Shopify App Store is a collection of apps that extend the capabilities of online stores and is a perfect place to earn recurring revenue.

Shopify Application Development will teach you to build Shopify apps using Ruby on Rails, deploy them to Heroku, and publish them in the Shopify App Store. Additionally, you will learn how to receive recurring revenue via the Shopify Billing API.

This is an easy-to-follow manual that will guide you through the entire process of application development with Shopify. This book focuses on building and launching a single application using best practices such as Test-Driven Development (TDD), agile methodologies, and iterative development from start to finish.

What You Will Learn

  • Create your own multitenant app using Ruby on Rails and deploy it to Heroku
  • Use RSpec and FactoryGirl for TDD
  • Ensure functional and targeted code using iterative development
  • Implement responsive design using Twitter Bootstrap
  • Request and process Shopify API access requests
  • Subscribe, verify, and respond to Shopify Webhooks
  • Publish your app to the Shopify App Store

Publisher Resources

Download Example Code

Table of Contents

  1. Shopify Application Development
    1. Table of Contents
    2. Shopify Application Development
    3. Credits
    4. About the Author
    5. About the Reviewers
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Getting Started with Shopify
      1. Revealing Shopify's power
      2. Deciding which type of app to build
      3. Discovering the API
      4. Exploring webhooks
        1. Orders
        2. Products
        3. Shop/Application
      5. Getting ready to build an app
      6. Summary
    9. 2. Setting Up
      1. Choosing a development tool
      2. Setting up our development environment
        1. Installing a Ruby management tool
        2. Installing Ruby
        3. Creating the application directory
      3. Installing Rails
        1. Generating a Rails app
      4. Installing Twitter Bootstrap
      5. Setting up source control
      6. Deploying to Heroku
      7. Summary
    10. 3. Building a Private App
      1. Signing up for Shopify
      2. Understanding our workflow
      3. Building the application
        1. High-level requirements
          1. Installing a few necessary gems
          2. Storing Shopify API credentials
          3. Connecting to Shopify
          4. Retrieving product information from Shopify
          5. Retrieving order information from Shopify
          6. Cleaning up the UI
            1. Updating the sidebar
            2. Updating orders, products, and variants
            3. Cleaning up the rest of the site
          7. Picking a winner from a list
          8. Creating contests
      4. Summary
    11. 4. Going Public
      1. High-level requirements
        1. Supporting multiple accounts
        2. Authorizing user access to data
        3. Verifying Shopify requests
          1. Verifying HTTP GET/POST requests
          2. Verifying webhook requests
        4. Installing from the Shopify App Store
        5. Subscribing to and processing Shopify Webhooks
      2. Summary
    12. 5. App Billing and Publication
      1. High-level requirements
        1. Adding free and paid plans
        2. Integrating with the Shopify Billing API
          1. Supporting recurring charges
        3. Publishing in the Shopify App Store
      2. Summary
    13. Index

Product Information

  • Title: Shopify Application Development
  • Author(s):
  • Release date: May 2014
  • Publisher(s): Packt Publishing
  • ISBN: 9781783281053