Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
/ next-kickstart Public archive

Next.js 14 kickstarter. Zero setup & edge ready. Take what you need: ESLint, Prettier, Tailwind, tRPC, WebSockets, Drizzle, Lucia Auth, Vitest, Testing Library, Playwright, PWA, Docker, CI, Bun

Notifications You must be signed in to change notification settings

syhner/next-kickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

  • πŸ“ 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 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