shopify-app-template-go
shopify-app-template-go copied to clipboard
A Shopify app template in Golang that uses App Bridge. It implements the app installation, as well as examples of Shopify API usage.
Template description
This is a Shopify app template written in Golang, that bootstraps the app building process. It includes:
- The setup of the client and server parts, built on top of the App Bridge.
- Shopify app installation logic.
- Examples of using the Shopify API include creating store products and counting the number of products.
Template usage
Prerequisites
Please ensure that the following software is installed on your computer:
Getting started
-
Clone the template using the following terminal command:
npx @softcerycom/shopify-app-template-go-init@latest && cd softcery-shopify-app-template-go
-
Install NPM dependencies:
npm i
-
Start the database (Postgres is used by default). The following command will start a new Postgres container using the configuration in the
.local.env
file:docker-compose --env-file .local.env up --build postgresdb
-
Run the project:
npm run dev