https://github.com/ory/summit-platform
https://github.com/ory/summit-platform
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ory/summit-platform
- Owner: ory
- License: apache-2.0
- Created: 2021-12-09T13:43:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-12T16:17:41.000Z (10 months ago)
- Last Synced: 2025-04-29T14:21:31.171Z (9 months ago)
- Language: TypeScript
- Homepage: https://summit.ory.sh/
- Size: 114 MB
- Stars: 5
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Ory Summit Platform
- Framework: Next.js
- Authentication: Ory Identities
- CSS: Tailwind CSS
- Database: Supabase
- Deployment: Vercel
## Local Development
```bash
export NEXT_PUBLIC_ORY_SDK_URL=https://practical-swirles-whg26u2ofh.projects.oryapis.com
npm run dev
ory tunnel --dev --project practical-swirles-whg26u2ofh \
http://localhost:3000
```
## Development
> Some things like OIDC and Passwordless don't work locally. You probably also
> have to remove `router.push(basePath + "/ui/login");` from `useAuth.tsx` to
> not get redirected. Use local for CSS or layout and test other features on the
> Staging domain.
Run the development server:
```bash
export NEXT_PUBLIC_ORY_SDK_URL=https://wonderful-gauss-otwhn7get8.projects.oryapis.com/
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the
result.
You can start editing the page by modifying `pages/index.tsx`. The page
auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on
[http://localhost:3000/api/hello](http://localhost:3000/api/hello). This
endpoint can be edited in `pages/api/hello.ts`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are
treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead
of React pages.
This project uses
[`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to
automatically optimize and load Inter, a custom Google Font.
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
## Webhooks Guide
Edit the `ory-identity-config.json-$project_name` to add the webhook you want &
update configuration on production with the steps above.
[Base64 encode](https://www.base64encode.org/) the data you want to capture:
```js
function(ctx) {
properties: {
email: ctx.identity.traits.email,
name: ctx.identity.traits.name,
},
}
```
Supabase Webhook:
```js
function(ctx) {
id: ctx.identity.id,
created_at: ctx.identity.created_at,
name: ctx.identity.traits.name,
}
```
## Setup
### Importing Identities
Assumptions:
1. You cloned the repository and cd'd inside it.
2. You have the [Ory CLI](https://www.ory.sh/docs/guides/cli/installation) and
[jq](https://stedolan.github.io/jq/download/) installed.
3. You adjusted the parameters in `setup/manage_ids.sh`. Per default a new Ory
project will be created and all 100 identities from the `setup/fake_emails`
list will be used.
```shell
sh scripts/setup/manage_ids.sh
```
With n=100 it should take 1-2 minutes to complete. By then your output should
look like this:
```shell
Using existing project with ID .....
Imported 100/100 identities.
Verified that all identities got created.
```