π§± 1. Create the project
npx create-next-app@latest your-project-name \
--typescript \
--app \
--tailwind \
--eslint \
--src-dir \
--import-alias "@/*"
This command sets up a modern and clean base including:
- β App Router
- β TypeScript support
- β TailwindCSS for styling
- β ESLint for clean code
- β
src/
as root directory - β
@/
alias for cleaner imports
π 2. Suggested folder structure
/app β routes using App Router
/src
βββ components β reusable UI components
βββ data β mock data
βββ context β global state
βββ hooks β reusable logic
βββ types β TypeScript types
βββ styles β global styles
/public
βββ images β local assets
π§ͺ 3. First commit
git init
git add .
git commit -m "chore: initialize Next.js app with TypeScript and Tailwind"
π‘ This setup is ready to scale. It works for MVPs, real-world products.
βοΈ Part of my devlog at buildlogmmd β clear structure, focused progress.
Top comments (0)