Git Product home page Git Product logo

example-ruby-app's Introduction

Shopify App Examples

This repository is home to the code examples highlighted in various Shopify API tutorials. They are designed solely for the purpose of introducing new developers to the Shopify API. The example apps are written in Sinatra, but the concepts presented will also apply to developers building applications in other languages such as Python, Node.js and PHP.

Tutorial index

1 Getting Started: Building a public Shopify application (tutorial)

2 Charging For Your App: Adding billing to your app (tutorial)

Requirements

Credentials

Follow this guide to obtain your public app credentials from your Shopify Partners account.

This example app uses a .env file to store app credentials. After cloning the repository, create a .env file in the root folder (/example-ruby-app) using the code snippet below. Then, copy the values of the API Key and API Secret from your partner dashboard, and use them as the values in .env.

API_KEY=YOUR_API_KEY
API_SECRET=YOUR_SECRET_KEY

YOUR_API_KEY and YOUR_SECRET_KEY are the values you must replace.

App URL

This tutorial series uses ngrok to create a secure tunnel from the internet to your local machine. For each installment in the series, you will need to copy the APP_URL generated by ngrok to your app.rb file. Additionally, the APP_URL needs to be added to the App URLs section of your public app settings. These procedures are covered in the Building a public Shopify application tutorial.

Running the app

bundle install
ruby 01\ Getting\ Started/app.rb

example-ruby-app's People

Contributors

andrewjtech123 avatar beefchimi avatar dtkinger avatar inkarnate avatar jamiemtdwyer avatar jordanliddle 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.