Skip to content

Commit

Permalink
Add instructions for local run
Browse files Browse the repository at this point in the history
  • Loading branch information
han-so1omon committed Oct 17, 2024
1 parent a7a6977 commit 9218660
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ Once you set the appropriate configuration values, you can then run your Express

```bash
node ./index.js
# For local
lt --port 8080
```

To load your app within the Shopify Admin app, you need to:
Expand Down
6 changes: 6 additions & 0 deletions examples/simple-app/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SHOPIFY_API_KEY=<my-client-id>
SHOPIFY_API_SECRET=<my-client-secret>
SHOPIFY_HOST_SCHEME=https
# include port in host name
SHOPIFY_HOST_NAME=<my-host-name>
PORT=8080
1 change: 1 addition & 0 deletions examples/simple-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const {
SHOPIFY_API_SECRET,
SHOPIFY_HOST_SCHEME,
SHOPIFY_HOST_NAME,
PORT,
} = process.env;

const shopify = shopifyApp({
Expand Down

0 comments on commit 9218660

Please sign in to comment.