Giter Site home page Giter Site 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

01 Getting Started

  • Building a public Shopify application (tutorial)

02 - Adding billing to your app

Requirements

Credentials

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

This example apps use a .env file to store app credentials. After cloning the repository, you will need to create a file named .env in the same folder of the tutorial. Copy the values of the API Key and API Secret from your partner dashboard, and add them to the .env file in the following format:

API_KEY=YOUR_API_KEY
API_SECRET=YOUR_SECRET_KEY

where YOUR_API_KEY and YOUR_SECRET_KEY are the values of your application's API key and secret key respectively.

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

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.