Markkos89 / next-kickstart

Next.js 13.4 app router boilerplate. Edge ready. Enable what you need. ESLint, Prettier, Tailwind, tRPC + WebSockets, Drizzle, NextAuth, Vitest, Testing Library, Playwright, PWA, Docker, CI/CD

Home Page:https://next-kickstart.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

next-kickstart

Feature packed Next.js 13.4 (app router) 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. Some of these may be optional, indicated with @optional {purpose} e.g.

/**
 * @enable Drizzle
 * @optional Store auth data in database
 */
// adapter: DrizzleAdapter(db)

πŸ“š Features

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)
  • πŸ’½πŸ’‘ Drizzle - ORM with maximal type safety
  • πŸ”’πŸ’‘ NextAuth - Flexible and secure authentication

Development

  • πŸ“ ESLint - Consistent code standards
  • ✨ Prettier - Consistent code styling
  • 🎨 Tailwind CSS - Utility-first CSS framework
  • 🧩 shadcn/ui - Components built with Radix UI and Tailwind CSS
  • πŸ“ MDX - Use markdown with components
  • πŸ“ Absolute imports - Easier and cleaner module imports
  • πŸ’» VS Code configurations - Configurations for easy debugging

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 or use the template
  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

πŸ’‘ (requires enabling)

Examples

About

Next.js 13.4 app router boilerplate. Edge ready. Enable what you need. ESLint, Prettier, Tailwind, tRPC + WebSockets, Drizzle, NextAuth, Vitest, Testing Library, Playwright, PWA, Docker, CI/CD

https://next-kickstart.vercel.app


Languages

Language:TypeScript 80.8%Language:JavaScript 11.8%Language:Dockerfile 4.2%Language:CSS 3.1%Language:MDX 0.1%