How sc30gsw/next15-first-sns-app-with works
Project type and purpose
• This is a full-stack Next.js application (using the App Router) that provides user authentication, posting, and liking functionality.
• Key indicators:
• src/app/(auth) and src/features/auth for sign-in/sign-up flows.
• src/app/(posts) and src/features/posts for CRUD operations on posts.
• A set of SQL migration scripts under migrations/ and a Drizzle ORM config (drizzle.config.ts), indicating a relational database backend.
File structure
• Top-level directories and files:
• src/app: Next.js routes & layouts (split into auth, posts, and global layouts).
• src/app/api: API route handlers, including NextAuth (src/app/api/auth/…) and a wildcard route ([[...route]]).
• src/components: UI primitives and providers (theme, sidebar, toast, dialogs).
• src/features: Domain-driven modules for auth, posts, and likes (each with actions, components, types, server code for posts).
• src/libs: Shared libraries (authentication config, session helpers, database connection via Drizzle, fetchers, RPC utils).
• migrations/: SQL migrations + meta snapshots, confirming a relational DB like PostgreSQL.
• Build & config files: next.config.ts, tsconfig.json, Tailwind and PostCSS configs.
README for additional insights
• Uses next/font for font optimization and deploys on Vercel by default.