https://github.com/get-convex/ents-saas-starter
Convex, Clerk, Next.js, Convex Ents
https://github.com/get-convex/ents-saas-starter
auth nextjs organizations orm teams
Last synced: 2 months ago
JSON representation
Convex, Clerk, Next.js, Convex Ents
- Host: GitHub
- URL: https://github.com/get-convex/ents-saas-starter
- Owner: get-convex
- Created: 2024-01-17T12:13:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-23T18:00:03.000Z (about 1 year ago)
- Last Synced: 2025-04-11T21:53:00.414Z (6 months ago)
- Topics: auth, nextjs, organizations, orm, teams
- Language: TypeScript
- Homepage: https://saas-starter-rouge.vercel.app/
- Size: 829 KB
- Stars: 46
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SaaS Starter: Convex + TypeScript + Next.js + Clerk + Tailwind + shadcn/ui
Build your SaaS website in no time! Included:
- Realtime database for implementing your product with
[Convex](https://convex.dev)
- Team/organization management
- Configurable roles and permissions
- Member invite emails using [Resend](https://resend.com)
- User sign-in and sign-up with [Clerk](https://clerk.com)
- Website router with [Next.js](https://nextjs.org/)
- Slick UX with [shadcn/ui](https://ui.shadcn.com/)Check out [Convex docs](https://docs.convex.dev/home), and
[Convex Ents docs](https://labs.convex.dev/convex-ents)## Screenshots
## Setting up
```
npm create convex@latest -- -t xixixao/saas-starter
```Then:
1. Run `npm run dev`
- It will ask you to set up `CLERK_JWT_ISSUER_DOMAIN`, Follow steps 1 to 3 in
the
[Convex Clerk onboarding guide](https://docs.convex.dev/auth/clerk#get-started)
2. Follow step 3 from the
[Clerk Next.js quickstart](https://clerk.com/docs/quickstarts/nextjs#set-environment-keys),
setting up both `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY` in
your `.env.local` file
3. Run `npx convex run init:init` to initialize the permissions and roles in the
databaseIf you want to sync Clerk user data via webhooks, check out this
[example repo](https://github.com/thomasballinger/convex-clerk-users-table/).