{"repo":"YukiOnishi1129/next-app-router-architecture","free":true,"listed":false,"github":"https://github.com/YukiOnishi1129/next-app-router-architecture","clone":"git clone https://github.com/YukiOnishi1129/next-app-router-architecture.git","description":"A clean and scalable architecture pattern for real-world Next.js (App Router) applications.","language":"TypeScript","stars":25,"topics":["nextjs","react","react-hook-form","tailwindcss","tanstack-react-query","typescript","drizzle-orm","shadcn-ui","zod","eslint"],"license":null,"category":"ui-components","readme_excerpt":"next-app-router-architecture Architecture patterns for building sustainable, production-ready apps with the Next.js App Router. The codebase implements a Request & Approval System that doubles as a reference for the accompanying dev.to series. Looking for the full story? Start with docs/README.md . It covers the product, guiding principles, routing patterns, data fetching, and quality guardrails. Need the frontend-specific playbook? Jump to frontend/docs/README.md . --- Quick Start 1. Copy .env.example to .env (root) and .env.local (inside frontend/ ). 2. Fill in auth/environment variables (see next section). 3. Start Postgres: docker compose up -d db (or pnpm db:up ). 4. Run migrations + dev server ( pnpm db:migrate , pnpm dev ). Regenerate typed routes whenever you add/remove a page with pnpm typegen . --- Environment Setup Root .env Contains shared values (database URL, etc.). Example: Frontend .env.local Rename frontend/.env.example to .env.local and provide: Google Identity Platform configuration - Enable Identity Platform (or Firebase Authentication) in your GCP project. - Add http://localhost:3000 to the authorized domains. - Create a web API key and use it for GCP IDENTITY PLATFORM API KEY . Restart pnpm dev after editing .env.local . --- Repository Map Path Purpose ------ --------- frontend/ Next.js App Router implementation (features, shared layer, external adapters). docs/ System-level guide, checklists, and product context. compose.yml Local Postgres container. sc","default_branch":null,"files":null,"tree":[],"storefront":"/r/YukiOnishi1129","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/YukiOnishi1129/next-app-router-architecture/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}