Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayasingam-paddle committed Sep 16, 2024
0 parents commit 1864ca4
Show file tree
Hide file tree
Showing 177 changed files with 12,632 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Supabase
## Private
SUPABASE_SERVICE_ROLE_KEY=

## Public
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=

# Paddle
## Private
NEXT_PUBLIC_PADDLE_ENV=sandbox # or `production`
PADDLE_API_KEY=
PADDLE_NOTIFICATION_WEBHOOK_SECRET=

## Public
NEXT_PUBLIC_PADDLE_CLIENT_TOKEN=
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "next"]
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @PaddleHQ/developer-experience
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Bug report
description: Report a problem.
title: '[Bug]: '
labels: ['bug']
body:
- type: markdown
attributes:
value: |
Use this form to report a bug or problem with the Next.js starter kit for Paddle Billing.
Remember to remove sensitive information from screenshots, videos, or code samples before submitting.
**Do not create issues for potential security vulnerabilities.** Please see the [Paddle Vulnerability Disclosure Policy](https://www.paddle.com/vulnerability-disclosure-policy) and report any vulnerabilities [using our form](https://vdp.paddle.com/p/Report-a-Vulnerability).
Thanks for helping to make the Paddle platform better for everyone!
- type: textarea
id: description
attributes:
label: What happened?
description: Describe the bug in a sentence or two. Feel free to add screenshots or a video to better explain!
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Steps to reproduce
description: Explain how to reproduce this issue. We prefer a step-by-step walkthrough, where possible.
value: |
1.
2.
3.
...
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: What did you expect to happen?
description: Tell us what should happen when you encounter this bug.
- type: textarea
id: logs
attributes:
label: Logs
description: Copy and paste any relevant logs. This is automatically formatted into code, so no need for backticks.
render: shell
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Get help
url: https://developer.paddle.com/
about: For help with the Paddle Node.js SDK or building your integration, contact our support team at [[email protected]](mailto:[email protected]).
- name: Report a vulnerability
url: https://vdp.paddle.com/p/Report-a-Vulnerability
about: Please see the [Paddle Vulnerability Disclosure Policy](https://www.paddle.com/vulnerability-disclosure-policy) and report any vulnerabilities using https://vdp.paddle.com/p/Report-a-Vulnerability.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Feature request
description: Suggest an idea.
title: '[Feature]: '
labels: ['feature']
body:
- type: markdown
attributes:
value: |
Use this form to send us suggestions for improvements to the Next.js starter kit for Paddle Billing.
For general feedback about the Paddle API or developer platform, contact our DX team directly
at [[email protected]](mailto:[email protected]).
Thanks for helping to make the Paddle platform better for everyone!
- type: textarea
id: request
attributes:
label: Tell us about your feature request
description: Describe what you'd like to see added or improved.
validations:
required: true
- type: textarea
id: problem
attributes:
label: What problem are you looking to solve?
description: Tell us how and why would implementing your suggestion would help.
validations:
required: true
- type: textarea
id: additional-information
attributes:
label: Additional context
description: Add any other context, screenshots, or illustrations about your suggestion here.
- type: dropdown
id: priority
attributes:
label: How important is this suggestion to you?
options:
- Nice to have
- Important
- Critical
default: 0
validations:
required: true
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Cancel running workflows
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout repo
uses: actions/checkout@v4
- name: Set node version
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Cache node_modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: node-modules-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem
.idea

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"printWidth": 120,
"trailingComma": "all",
"bracketSpacing": true
}
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Contributing

If you've spotted a problem with this package or have a new feature request, please open an issue.

For help with the Paddle API or building your integration, contact our support team at [[email protected]](mailto:[email protected]).
Loading

0 comments on commit 1864ca4

Please sign in to comment.