Skip to content

Latest commit

 

History

History
189 lines (122 loc) · 7.33 KB

README.md

File metadata and controls

189 lines (122 loc) · 7.33 KB

next-kickstart

Feature packed Next.js boilerplate. Zero setup. Edge ready.

Some features depend on environment variables (indicated in features list with 💡) and so require enabling. They are disabled by default so that the app runs without any setup. They can be enabled by uncommenting all lines under where @enable {feature} appears.

📚 Features

View the repository branches for other feature sets (e.g. Bun)

Core

  • 🏗️ TypeScript - Configured to maximize type safety
  • ⚙️ T3 Env - Environment variable validation
  • 🌐 tRPC - Create end-to-end type-safe APIs that work in both client and server components
  • ⚡💡 WebSockets - Real-time communication (using Pusher, but can be swapped out for alternatives)
    • 🔗 integrates with tRPC for end-to-end type-safe events
  • 💽💡 Drizzle - ORM with maximal type safety
  • 🔒💡 Lucia Auth - Flexible and secure authentication
    • 🔗💡 integrates with Drizzle to store auth data

Development

Testing

  • 🧪 Vitest - Flexible testing framework
  • 🐙 React Testing Library - Maintainable component testing
    • 🔗 integrates with Vitest as your testing framework
  • 🎭 Playwright - End-to-end testing against multiple environments

Deployment

  • 📊 Bundle analyzer - Analyze bundle sizes in each environment with pnpm run build:analyze
  • 📦💡 next-pwa - Make your website as a progressive web app (PWA)
  • 🐳 Docker - (local and production) Docker-compose and Dockerfiles for running anywhere
  • 🔄 GitHub Actions - Robust CI/CD

🌱 Getting started

🚀 Option 1: Clone and deploy with Vercel

Vercel

📋 Option 2: Clone and run locally

  1. Fork this repository (uncheck 'Copy the main branch only` if you are interested in other branches / feature sets)
  2. Clone your new repository
  3. Install dependencies and run the development server
  • with pnpm

    pnpm install
    pnpm run dev
  • or with Docker

    docker-compose --file docker/dev/docker-compose.yml up

⚙️ Configuration

💡 (requires enabling)

💡 (requires enabling)

Examples

Examples

💡 (requires enabling)

Examples