Skip to content

neondatabase-labs/neon-identity-template

Repository files navigation

Neon Identity Template App

This is a Next.js project using the App Router that servers as template for the Neon Identity integration with Stack Auth.

Features

  • 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

Prerequisites

  • Neon account
  • Node.js 18+ installed locally

Local Development Setup

1. Set up Neon Identity

  1. Create a new Neon project or use an existing one
  2. Navigate into Neon Identity
  3. Click "Connect" and go through the OAuth flow until your Neon Identity integration is set

2. Run the development server

  1. Install dependencies:

    npm install
  2. 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
    
  3. Run the development server:

    npm run dev

Open http://localhost:3000 with your browser to see the result.

Learn More

Authors

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A template to get started with

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published