|
| 1 | +This is a simple example application using @ory/elements-react & Next.js app |
| 2 | +router. |
| 3 | + |
| 4 | +## Getting started |
| 5 | + |
| 6 | +1. Sign up for an account at https://console.ory.sh |
| 7 | +2. Create a new or use an existing project |
| 8 | +3. Go to https://console.ory.sh/projects/current/settings and copy the **API |
| 9 | + endpoints** URL |
| 10 | +4. Set the `NEXT_PUBLIC_ORY_SDK_URL` to your project's **API endpoints** URL |
| 11 | +5. Run `npm install` |
| 12 | +6. Run `npm run dev` and open navigate to http://localhost:3000 |
| 13 | + |
| 14 | +<!-- prettier-ignore-start --> |
| 15 | +> [!WARNING] |
| 16 | +> For convinience Ory provides a default "playground" project, that |
| 17 | +> can be used to interact with Ory's APIs. It is a public project, that can be |
| 18 | +> used by anyone and data can be deleted at any time. Make sure to use a |
| 19 | +> dedicated project. |
| 20 | +<!-- prettier-ignore-end --> |
| 21 | +
|
| 22 | +## Features |
| 23 | + |
| 24 | +- All self-service user flows Ory supports |
| 25 | + - [Login](http://localhost:3000/auth/login) |
| 26 | + - [Registration](http://localhost:3000/auth/registration) |
| 27 | + - [Recovery](http://localhost:3000/auth/recovery) |
| 28 | + - [Verification](http://localhost:3000/auth/verification) |
| 29 | + - [Settings](http://localhost:3000/settings) |
| 30 | +- User Logout |
| 31 | + |
| 32 | +## Project structure |
| 33 | + |
| 34 | +The project files reside in the `app/` directory: |
| 35 | + |
| 36 | +- `app/auth` - contains the page files for the user auth flows |
| 37 | +- `app/settings` - contaisn the page file for the settings flow |
| 38 | +- `app` - contains the root page file and layout. |
| 39 | + |
| 40 | +## Need help? |
| 41 | + |
| 42 | +If you have any issues using this examples, or Ory's products, don't hesitate to |
| 43 | +reach out via the [Ory Community Slack](https://slack.ory.sh). |
0 commit comments