Skip to content

allen13/claude-next

Repository files navigation

Claude Next

Next.js 16 starter with Neon Postgres, authentication, and row-level security.

Tech Stack

  • Framework: Next.js 16 (App Router) + React 19 + TypeScript
  • Styling: Tailwind CSS v4 + shadcn/ui
  • Database: Neon Serverless Postgres + Drizzle ORM
  • Auth: Neon Auth (Better Auth) + Data API
  • Security: Row-Level Security (RLS)

Prerequisites

Install Bun

# macOS / Linux
curl -fsSL https://bun.sh/install | bash

# Windows
powershell -c "irm bun.sh/install.ps1|iex"

# Or via npm
npm install -g bun

Quick Start

  1. Clone the repository

  2. Install dependencies:

    bun install
  3. Set up Neon - Follow the Neon Setup Guide to:

    • Create a Neon project
    • Enable Neon Auth
    • Enable Data API
    • Get your DATABASE_URL
  4. Create .env.local:

    DATABASE_URL='postgresql://user:pass@ep-xxx-pooler.region.aws.neon.tech/neondb?sslmode=require'
  5. Run migrations:

    bun db:migrate
  6. Start development server:

    bun dev
  7. Open https://localhost:3000

Commands

bun dev          # Start dev server (https://localhost:3000)
bun build        # Production build
bun start        # Start production server
bun lint         # Run Biome linter
bun format       # Format code with Biome

Database

bun db:generate  # Generate migration files
bun db:migrate   # Run migrations
bun db:studio    # Open Drizzle Studio

Components

bunx shadcn@latest add <component-name>

Documentation

Project Structure

src/
├── app/              # Next.js App Router pages
├── components/       # React components
│   └── ui/           # shadcn/ui primitives
├── db/               # Drizzle schema and migrations
├── hooks/            # TanStack Query hooks
├── lib/              # Utilities and query functions
└── types/            # TypeScript types

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors