Skip to content
A minimalist framework for creating Shopify authorised applications with Koa.js
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
server
.env
.gitignore
README.md
package.json
server.js

README.md

shopify-koa-server

A minimalist framework for creating Shopify authorised applications with Koa.js

server.js

The server.js file utilises the Koa authorisation package provided by Shopify (koa-shopify-auth) to create a connection to your store and serve the app

Based on this article on Shopify's website: https://www.shopify.com.au/partners/blog/shopify-admin-authenticate-app

.env file

Once you set up your app in your partner account, add the API key and secret key here. These environment variables are what is used by the server.js file to authorise your application.

'public' Directory

The public folder is what is mounted by the app and displayed on the front-end. Use this to build out a Single Page Application (SPA) with whichever front-end framework you desire.

'server' Directory

The server folder holds a pre-built API client for using the GraphQL Admin API as well as templates for storing your API queries, API mutations and Koa routes.

You can’t perform that action at this time.