-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Seth Rowland
committed
Jun 3, 2022
0 parents
commit dad124c
Showing
33 changed files
with
12,520 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SHOPIFY_API_KEY="YOUR_SHOPIFY_API_KEY" | ||
SHOPIFY_API_SECRET="YOUR_SHOPIFY_SECRET" | ||
HOST="YOUR_TUNNEL_URL" | ||
SHOP="my-shop-name.myshopify.com" | ||
SCOPES=write_products |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SHOPIFY_API_KEY="TEST_SHOPIFY_API_KEY" | ||
SHOPIFY_API_SECRET="TEST_SHOPIFY_SECRET" | ||
HOST="TEST_TUNNEL_URL" | ||
SHOP="my-shop-name.myshopify.test" | ||
SCOPES=read_products |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Environment Configuration | ||
.env | ||
|
||
# Dependency directory | ||
node_modules | ||
|
||
# Test coverage directory | ||
coverage | ||
|
||
# Ignore Apple macOS Desktop Services Store | ||
.DS_Store | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# ngrok tunnel file | ||
config/tunnel.pid | ||
|
||
# webpack build output | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx pretty-quick --staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
engine-strict=true | ||
@shopify:registry=https://registry.yarnpkg.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
project_type: node | ||
organization_id: 2500848 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Shopify | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Shopify App Node | ||
|
||
[](LICENSE.md) | ||
|
||
This is a sample app to help developers bootstrap their Shopify app development. | ||
|
||
It leverages the [Shopify API Library](https://github.com/Shopify/shopify-node-api) on the backend to create [an embedded app](https://shopify.dev/apps/tools/app-bridge/getting-started#embed-your-app-in-the-shopify-admin), and [Polaris](https://github.com/Shopify/polaris-react) and [App Bridge React](https://shopify.dev/tools/app-bridge/react-components) on the frontend. | ||
|
||
This is the repository used when you create a new Node app with the [Shopify CLI](https://shopify.dev/apps/tools/cli). | ||
|
||
## Requirements | ||
|
||
- If you don’t have one, [create a Shopify partner account](https://partners.shopify.com/signup). | ||
- If you don’t have one, [create a Development store](https://help.shopify.com/en/partners/dashboard/development-stores#create-a-development-store) where you can install and test your app. | ||
- **If you are not using the Shopify CLI**, in the Partner dashboard, [create a new app](https://help.shopify.com/en/api/tools/partner-dashboard/your-apps#create-a-new-app). You’ll need this app’s API credentials during the setup process. | ||
|
||
## Installation | ||
|
||
Using the [Shopify CLI](https://github.com/Shopify/shopify-cli) run: | ||
|
||
```sh | ||
shopify app create node -n APP_NAME | ||
``` | ||
|
||
Or, you can run `npx degit shopify/shopify-app-node` and create a `.env` file containing the following values: | ||
|
||
```yaml | ||
SHOPIFY_API_KEY={api key} # Your API key | ||
SHOPIFY_API_SECRET={api secret key} # Your API secret key | ||
SCOPES={scopes} # Your app's required scopes, comma-separated | ||
HOST={your app's host} # Your app's host, without the protocol prefix | ||
``` | ||
|
||
## Developer resources | ||
|
||
- [Introduction to Shopify apps](https://shopify.dev/apps/getting-started) | ||
- [App authentication](https://shopify.dev/apps/auth) | ||
- [Shopify CLI command reference](https://shopify.dev/apps/tools/cli/app) | ||
- [Shopify API Library documentation](https://github.com/Shopify/shopify-node-api/tree/main/docs) | ||
|
||
## License | ||
|
||
This repository is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Security Policy | ||
|
||
## Supported versions | ||
|
||
### New features | ||
|
||
New features will only be added to the master branch and will not be made available in point releases. | ||
|
||
### Bug fixes | ||
|
||
Only the latest release series will receive bug fixes. When enough bugs are fixed and its deemed worthy to release a new gem, this is the branch it happens from. | ||
|
||
### Security issues | ||
|
||
Only the latest release series will receive patches and new versions in case of a security issue. | ||
|
||
### Severe security issues | ||
|
||
For severe security issues we will provide new versions as above, and also the last major release series will receive patches and new versions. The classification of the security issue is judged by the core team. | ||
|
||
### Unsupported Release Series | ||
|
||
When a release series is no longer supported, it's your own responsibility to deal with bugs and security issues. If you are not comfortable maintaining your own versions, you should upgrade to a supported version. | ||
|
||
## Reporting a bug | ||
|
||
All security bugs in shopify repositories should be reported to [our hackerone program](https://hackerone.com/shopify) | ||
Shopify's whitehat program is our way to reward security researchers for finding serious security vulnerabilities in the In Scope properties listed at the bottom of this page, including our core application (all functionality associated with a Shopify store, particularly your-store.myshopify.com/admin) and certain ancillary applications. | ||
|
||
## Disclosure Policy | ||
|
||
We look forward to working with all security researchers and strive to be respectful, always assume the best and treat others as peers. We expect the same in return from all participants. To achieve this, our team strives to: | ||
|
||
- Reply to all reports within one business day and triage within two business days (if applicable) | ||
- Be as transparent as possible, answering all inquires about our report decisions and adding hackers to duplicate HackerOne reports | ||
- Award bounties within a week of resolution (excluding extenuating circumstances) | ||
- Only close reports as N/A when the issue reported is included in Known Issues, Ineligible Vulnerabilities Types or lacks evidence of a vulnerability | ||
|
||
**The following rules must be followed in order for any rewards to be paid:** | ||
|
||
- You may only test against shops you have created which include your HackerOne YOURHANDLE @ wearehackerone.com registered email address. | ||
- You must not attempt to gain access to, or interact with, any shops other than those created by you. | ||
- The use of commercial scanners is prohibited (e.g., Nessus). | ||
- Rules for reporting must be followed. | ||
- Do not disclose any issues publicly before they have been resolved. | ||
- Shopify reserves the right to modify the rules for this program or deem any submissions invalid at any time. Shopify may cancel the whitehat program without notice at any time. | ||
- Contacting Shopify Support over chat, email or phone about your HackerOne report is not allowed. We may disqualify you from receiving a reward, or from participating in the program altogether. | ||
- You are not an employee of Shopify; employees should report bugs to the internal bug bounty program. | ||
- You hereby represent, warrant and covenant that any content you submit to Shopify is an original work of authorship and that you are legally entitled to grant the rights and privileges conveyed by these terms. You further represent, warrant and covenant that the consent of no other person or entity is or will be necessary for Shopify to use the submitted content. | ||
- By submitting content to Shopify, you irrevocably waive all moral rights which you may have in the content. | ||
- All content submitted by you to Shopify under this program is licensed under the MIT License. | ||
- You must report any discovered vulnerability to Shopify as soon as you have validated the vulnerability. | ||
- Failure to follow any of the foregoing rules will disqualify you from participating in this program. | ||
|
||
** Please see our [Hackerone Profile](https://hackerone.com/shopify) for full details | ||
|
||
## Receiving Security Updates | ||
|
||
To recieve all general updates to vulnerabilities, please subscribe to our hackerone [Hacktivity](https://hackerone.com/shopify/hacktivity) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
</head> | ||
<body> | ||
<div id="app"><!--app-html--></div> | ||
<script type="module" src="/src/entry-client.jsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.