Neon Auth demo using Next.js, Drizzle, and Styled Components
Clone this demonstration application and install the dependencies:
git clone https://github.com/neondatabase-labs/neon-auth-demo-app.git
cd neon-auth-demo-app
npm install
.env.local
:NEXT_PUBLIC_STACK_PROJECT_ID
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY
STACK_SECRET_SERVER_KEY
DATABASE_URL
Set up the database:
npm run drizzle:generate # Generates migrations
npm run drizzle:migrate # Applies migrations
Start the development server:
npm run dev
Visit http://localhost:3000
to see the application running (check your console for the actual port if 3000 is in use).
Configure production settings in the Neon Console's Auth Configuration tab, such as domain restrictions.
Contributions are welcome! Please feel free to submit a Pull Request.