๐งฑ 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)