A React full-stack application demo project based on Next.js 16. Demonstrates how to build modern Web applications using Next.js App Router, TypeScript, and Tailwind CSS.
- Next.js: 16.0.0
- React: 19.2.0
- TypeScript: 5.x
- Tailwind CSS: 4.x
- ESLint: 9.x
nextjs-demo/
├── app/
│ ├── layout.tsx # Root layout component
│ ├── page.tsx # Home page
│ ├── globals.css # Global styles
│ └── favicon.ico # Website icon
├── public/ # Static assets
│ ├── next.svg
│ ├── vercel.svg
│ └── ...
├── next.config.ts # Next.js configuration
├── tsconfig.json # TypeScript configuration
├── postcss.config.mjs # PostCSS configuration
├── eslint.config.mjs # ESLint configuration
└── README.md
- App Router architecture
- Server-Side Rendering (SSR)
- Static Site Generation (SSG)
- Automatic code splitting
- Image optimization
- Dark mode support
- TypeScript support
- Tailwind CSS styling
- Node.js 18 or higher
- npm, yarn, or pnpm
# Install dependencies
npm install
# Or
yarn install
# Or
pnpm install
# Run development server
npm run dev
# Or
yarn dev
# Or
pnpm devThe application will start at http://localhost:3000.
# Build production version
npm run build
# Start production server
npm start
# Run Lint
npm run lintUses Next.js 13+ App Router, providing:
- File-system-based routing
- Layouts and templates
- Loading states
- Error handling
- Route groups and parallel routes
app/layout.tsx: Root layout containing shared UI for all pagesapp/page.tsx: Home page componentapp/globals.css: Global styles file
Uses Tailwind CSS 4.x for styling:
- Utility-first CSS framework
- Dark mode support
- Responsive design
- JIT compilation
Next.js provides fast refresh functionality that automatically updates the browser when code is modified.
Project fully uses TypeScript for type safety:
- Strict type checking
- Auto-completion and IntelliSense
- Compile-time error detection
- ESLint: Code linting
- TypeScript: Type checking
- Prettier: Code formatting (if configured)
Next.js is created by Vercel and can be deployed with one click:
# Install Vercel CLI
npm i -g vercel
# Deploy
vercelNext.js can be deployed to any platform supporting Node.js:
- Docker
- AWS
- Google Cloud
- Azure
- Self-hosted servers
