rsnext/examples/with-supertokens/README.md

25 lines
1,007 B
Markdown
Raw Normal View History

2021-02-15 22:41:45 +01:00
# SuperTokens Example
This is a simple set up for applications protected by SuperTokens.
## How to use
- Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:
2021-02-15 22:41:45 +01:00
```bash
npx create-next-app --example with-supertokens with-supertokens-app
# or
yarn create next-app --example with-supertokens with-supertokens-app
# or
pnpm create next-app --example with-supertokens with-supertokens-app
2021-02-15 22:41:45 +01:00
```
- Run `yarn install`
- Run `npm run dev` to start the application on `http://localhost:3000`.
2021-02-15 22:41:45 +01:00
## Notes
- Take a look at [SuperTokens documentation](https://supertokens.io/docs/community/introduction).
- We have provided development OAuth keys for the various in build third party providers in the `.env` file. Feel free to use them for development purposes, but **please create your own keys for production use**.