https://github.com/markusthielker/next-ory
☄️ An easy-to-use starting point to self-host Ory Kratos with OAuth2 and OIDC, NextJS authentication UI and admin dashboard (soon) styled with TailwindCSS and shadcn/ui
https://github.com/markusthielker/next-ory
docker nextjs ory ory-hydra ory-kratos react tailwindcss typescript
Last synced: 5 months ago
JSON representation
☄️ An easy-to-use starting point to self-host Ory Kratos with OAuth2 and OIDC, NextJS authentication UI and admin dashboard (soon) styled with TailwindCSS and shadcn/ui
- Host: GitHub
- URL: https://github.com/markusthielker/next-ory
- Owner: MarkusThielker
- Created: 2024-05-03T03:11:39.000Z (about 1 year ago)
- Default Branch: development
- Last Pushed: 2024-11-30T19:37:49.000Z (5 months ago)
- Last Synced: 2024-12-01T07:05:01.980Z (5 months ago)
- Topics: docker, nextjs, ory, ory-hydra, ory-kratos, react, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 1.28 MB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ory - Next.js based starter for Ory Kratos and Ory Hydra
- awesome-ory - Next.js based starter for Ory Kratos and Ory Hydra
README
# Next-Ory
Get started with ORY authentication quickly and easily.
> [!Warning]
> This project is work in progress. There is no guarantee that everything will work as it should and breaking changes in
> the future are possible.The goal of this project is to create an easy-to-use setup to self-host [Ory Kratos](https://www.ory.sh/kratos)
and [Ory Hydra](https://www.ory.sh/hydra). It will contain an authentication UI, implementing all self-service flows for
Ory Kratos and Ory Hydra, as well as an admin UI. All UI components are written in NextJS and Typescript, and styled
using shadcn/ui and TailwindCSS.## Getting started
Start the backend services using Docker Compose:
```bash
cp /docker/ory-dev/.env.example /docker/ory-dev/.env
docker compose -f docker/ory-dev/docker-compose.yaml up -d# optional to test consent flow
sh docker/ory-dev/hydra-test-consent.sh
```Then start the authentication UI using npm:
```bash
cd authentication
cp .env.example .env
npm install
npm run dev
```Inside another terminal session we can start the dashboard UI using npm:
```bash
cd dashboard
cp .env.example .env
npm install
npm run dev
```## Deployment
*soon.*
## Authentication UI
The authentication UI is already implemented and working. It supports all self-service flows for Ory Kratos and Ory
Hydra. It is implemented in a way, that customizing style and page layout is very easy.

## Admin UI
*soon.*