Giter Site home page Giter Site logo

beyond-example-app's Introduction

ePages Beyond Example App: Beautiful Order Documents

Deploy

This app shows a list of orders for a configured shop. Each order has a link, that triggers rendering an order document containing the line items as a PDF.

Screenshot of the app

The order list for two different shops is shown. On the left side you see the order list of the respective shop, on the right side a single generated order document.

Running it on Heroku

  1. You need to have a developer shop for ePages Beyond.
  2. Create a "Custom app" having at least the scope "Read orders" (ordr:r). Note the client_id and client_secret. In order to see something in the app, it is recommended that you have at least one order in your shop.
  3. Click the Heroku button above. Login with your Heroku account and fill out the required environment variables:
    • CLIENT_ID and CLIENT_SECRET are the ones you just noted.
    • The API_URL is required for Custom apps (apps that are only active in your shop and cannot be installed in other shops). The API_URL is your shop's domain appended by /api, e.g.
      https://api-shop.beyondshop.cloud/api
  4. Hit the "Create app" button to deploy!

Local Development Using Docker

# 1. Build the docker image
make docker_build

# 2. Initialize the environment variable file
make docker_init_env

# 3. Edit the env.list file, set CLIENT_ID, CLIENT_SECRET and API_URL
#    You can obtain those following steps 1. to 3. from "Running it on Heroku"

# 4. Run the app
make docker_run

beyond-example-app's People

Contributors

mduesterhoeft avatar ooz 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.