Skip to content

Commit

Permalink
Merge pull request #85 from kinde-oss/dave/feat/playground
Browse files Browse the repository at this point in the history
feat: add playground
  • Loading branch information
DaveOrDead authored Nov 6, 2023
2 parents 82b6f54 + 105a44c commit 05970ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
dist
.DS_Store
coverage
playground
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"build:watch": "genversion --es6 src/utils/version.js && rollup -c -w",
"test": "jest",
"release": "release-it",
"lint": "eslint --ignore-path .eslintignore --ext .js"
"lint": "eslint --ignore-path .eslintignore --ext .js",
"dev:prepare": "rm -rf playground && git clone https://github.com/kinde-starter-kits/kinde-nextjs-app-router-starter-kit playground && npm link && cd playground && mv .env.local.sample .env.local && npm uninstall @kinde-oss/kinde-auth-nextjs && rm -rf .git && npm link @kinde-oss/kinde-auth-nextjs",
"dev": "cd playground && npm run dev"
},
"author": {
"name": "Kinde",
Expand Down
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ To publish a new package version, use the “Release and Publish to NPM” actio

Please refer to Kinde’s [contributing guidelines](https://github.com/kinde-oss/.github/blob/489e2ca9c3307c2b2e098a885e22f2239116394a/CONTRIBUTING.md).

## Playground

To create the playground run `npm run dev:prepare`

This will clone the NextJS app router starter kit into a `/playground` directory and reference the SDK via `npm link`.

You will need to add your Kinde credentials to the generated `.env.local` file inside `/playground`

`npm run dev` will load up the playground on [http://localhost:3000](http://localhost:3000)

## License

By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.

0 comments on commit 05970ea

Please sign in to comment.