This is a Next.js project using the App Router that servers as template for the Neon Identity integration with Stack Auth.
- Next.js with the App Router, TypeScript and Tailwind CSS
- User authentication powered by Stack Auth
- Integration with Neon Identity
- Ready-to-deploy configuration for Vercel, Netlify, and Render
- Neon account
- Node.js 18+ installed locally
- Create a new Neon project or use an existing one
- Navigate into Neon Identity
- Click "Connect" and go through the OAuth flow until your Neon Identity integration is set
-
Install dependencies:
npm install
-
Create
.env.local
file and copy the variables from the Neon Identity dashboard:# Stack Auth NEXT_PUBLIC_STACK_PROJECT_ID= NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY= STACK_SECRET_SERVER_KEY= # Database connections DATABASE_URL= # neondb_owner role connection
-
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Contributions are welcome! Please feel free to submit a Pull Request.