← Course syllabus
Next.js Course Index
A study outline covering routing, data fetching, APIs, testing, SEO, and deployment.
0. Setup and Orientation
- What is Next.js and when to use it
- Prerequisites: Node.js, npm, Git, React basics
- Install and create a project (
create-next-app) - Project structure overview
1. Routing Fundamentals
- App Router vs Pages Router (what we will use in this course)
- File-based routing:
app/folders - Pages and layouts:
page.tsx,layout.tsx - Nested routes
- Route groups and parallel routes (overview)
- Navigation:
next/link,useRouter
2. UI and Styling
- Global CSS and CSS Modules
- Tailwind CSS setup
- Component patterns and folder structure
- Fonts and images:
next/font,next/image
3. Data Fetching
- Server Components vs Client Components
- Fetching on the server with
fetch - Loading and error states:
loading.tsx,error.tsx - Caching and revalidation (basics)
4. Server Actions and Forms
- Handling form submissions
- Server Actions basics
- Validation patterns
- Optimistic UI (intro)
5. API Layer
- Route Handlers:
app/api/.../route.ts - Request and response patterns
- Middleware basics
- Auth patterns (overview)
6. Database and ORM (Optional but Recommended)
- Choosing a database
- Prisma setup (example)
- CRUD example: list, create, update, delete
- Migrations and schema changes
7. Authentication (Project Module)
- Auth concepts: sessions, JWT, cookies
- NextAuth/Auth.js (high-level)
- Protected routes and middleware
- Role-based access (intro)
8. State Management
- When you do not need global state
- URL state and search params
- Client state with React hooks
- Server state patterns
9. SEO and Metadata
- Metadata API
- Open Graph and social previews
- Sitemap and robots (overview)
10. Performance
- Bundle and rendering considerations
- Dynamic imports
- Image optimization
- Common performance pitfalls
11. Testing (Intro)
- Unit testing components
- Integration testing routes
- E2E testing overview
12. Deployment
- Environment variables
- Deploying to Vercel
- Build and runtime notes
- Monitoring and logging basics
13. Capstone Project
- Requirements and scope
- Milestones
- Final checklist
Resources
- Official docs: https://nextjs.org/docs
- React docs: https://react.dev