Development Guide

Patterns for building features in the current Next.js Drizzle kit.

Use the development guide as a reference for the repo's normal flow:

  1. define schema and validation
  2. update database code if needed
  3. add server actions or loaders
  4. build UI components
  5. wire the page

Canonical Locations

  • authenticated pages: apps/web/app/[locale]/(internal)/...
  • public pages: apps/web/app/[locale]/(public)/...
  • auth pages: apps/web/app/[locale]/auth/...
  • local feature logic: _lib/
  • local feature UI: _components/
  • shared packages: packages/**

There is no dedicated packages/features/ folder in this repo. If code becomes broadly shared, create a normal workspace package under packages/ or one of the grouped package families.

Topics

  1. Development Workflow
  2. Adding Features
  3. Server Actions
  4. Action Middleware
  5. Working with Forms
  6. Database Operations

Next: Development Workflow →