33 lines
692 B
Markdown
33 lines
692 B
Markdown
# Kairas Webapp
|
|
|
|
Next.js App Router app with Clerk authentication, Convex client wiring, and shadcn-style UI components.
|
|
|
|
## Setup
|
|
|
|
Copy `.env.example` to `.env.local` and fill in the Clerk keys:
|
|
|
|
```bash
|
|
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
|
|
CLERK_SECRET_KEY=
|
|
```
|
|
|
|
Create or link a Convex deployment:
|
|
|
|
```bash
|
|
npx convex dev
|
|
```
|
|
|
|
That command will set `NEXT_PUBLIC_CONVEX_URL`. Configure `CLERK_JWT_ISSUER_DOMAIN` in Convex using your Clerk Frontend API URL, then rerun `npx convex dev` so Convex syncs `convex/auth.config.ts`.
|
|
|
|
## Development
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
Routes:
|
|
|
|
- `/sign-in` is public.
|
|
- `/sign-up` is public.
|
|
- `/` is protected and redirects unauthenticated users to sign in.
|