Skip to content

A modern Next.js starter template with Supabase integration, featuring a beautiful UI powered by Radix UI components and Tailwind CSS.

License

ysskrishna/nextjs-supabase-starter

Repository files navigation

Next.js React TypeScript Supabase Tailwind CSS Radix UI License: MIT

NextJS Supabase Starter

A modern Next.js starter template with Supabase integration, featuring a beautiful UI powered by Radix UI components and Tailwind CSS.

Demo

Features

  • 🔐 Authentication system with Supabase
  • 📱 Responsive design with Tailwind CSS
  • 🎨 Modern UI components from Radix UI
  • 📊 Dashboard interface
  • 🎯 TypeScript support
  • 🌓 Light/Dark theme support with system preference detection
  • 🔄 Automatic route protection and redirections

Authentication Flow

The application implements a complete authentication flow with the following features:

  • Protected routes with automatic redirections
  • Session management using Supabase Auth
  • Google OAuth integration
  • Persistent authentication state
  • Secure token handling

For detailed setup instructions, please refer to the Authentication Guide which includes:

  • Supabase project setup
  • Google OAuth configuration
  • Environment variables setup
  • Authentication middleware configuration

Screenshots

Landing Page

Light Theme

Landing Page Light Theme

Dark Theme

Landing Page Dark Theme

SignUp Page

Light Theme

SignUp Page Light Theme

Dark Theme

SignUp Page Dark Theme

SignIn Page

Light Theme

SignIn Page Light Theme

Dark Theme

SignIn Page Dark Theme

Dashboard Page

Light Theme

Dashboard Page Light Theme

Dark Theme

Dashboard Page Dark Theme

Tech Stack

  • Framework: Next.js 15
  • Database & Auth: Supabase
  • Styling: Tailwind CSS
  • UI Components: Radix UI
  • Form Handling: React Hook Form
  • Validation: Zod
  • Charts: Recharts
  • Icons: Lucide React
  • Date Handling: date-fns

Getting Started

  1. Clone the repository
  2. Install dependencies:
    npm install
    # or
    pnpm install
  3. Set up your Supabase project and add the environment variables
  4. Run the development server:
    npm run dev
    # or
    pnpm dev

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint

Project Structure

├── app/              # Next.js app directory
│   ├── auth/        # Authentication routes
│   ├── dashboard/   # Dashboard pages
│   ├── signin/      # Sign in page
│   └── signup/      # Sign up page
├── components/      # Reusable UI components
├── lib/            # Utility functions and configurations
├── public/         # Static assets
└── styles/         # Global styles
└── docs/           # Documentation
    └── AUTHENTICATION.md  # Authentication setup guide

Dependencies

The project uses a comprehensive set of modern dependencies including:

  • Radix UI components for accessible UI elements
  • React Hook Form for form handling
  • Zod for schema validation

Contributing

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

License

This template is licensed under the MIT License - see the LICENSE file for details.

About

A modern Next.js starter template with Supabase integration, featuring a beautiful UI powered by Radix UI components and Tailwind CSS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published