Next.js Full-Stack
Rebuild Tally as one Next.js app: App Router pages, Server and Client Components, Prisma, Server Actions and route handlers, private accounts, caching and a Lighthouse-checked finish.
Modules
6
Lessons
36
Level
Advanced
Project
Reviewed by a mentor
About This Course
You have built Tally as a React front end talking to a separate Express API. Next.js lets you build both halves in one codebase, with the server and the browser sharing routing, rendering and data access. In this course you rebuild Tally as a single Next.js app with the App Router: Server and Client Components, Prisma queries from server code, Server Actions and Route Handlers, private user accounts, caching and streaming. You finish by auditing it with Lighthouse. AI is a tutor only in this course: you write and understand every line.
You'll Be Able To
- Build pages, layouts, nested and dynamic routes with the Next.js App Router
- Decide what belongs in a Server Component and what needs a Client Component
- Read and write data with Prisma from Server Components, Server Actions and Route Handlers
- Add authentication and per-user authorisation to a Next.js app, including route protection with a proxy (formerly middleware)
- Explain static versus dynamic rendering, caching and revalidation, and improve a page's performance and metadata
What's Inside
- 1
Next.js foundations
6 lessons
Create Tally's Next.js project, learn how the App Router turns folders into pages, and build its layouts, links and dynamic routes into a page shell that runs as a production build.
- 2
Server and client components
6 lessons
Learn what runs on the server and what runs in the browser, fetch data in Server Components, and give Tally's server-rendered expense list loading, error and not-found states.
- 3
Prisma in Next.js
5 lessons
Connect Tally to PostgreSQL with Prisma: one shared client, queries in Server Components, a data access layer scoped to the user, secrets kept on the server, and a monthly dashboard.
- 4
Mutations and route handlers
7 lessons
Add, edit and delete Tally expenses with Server Actions: validate input with Zod, show errors and pending states, refresh pages, update optimistically, and build a JSON API.
- 5
Authentication in Next.js
6 lessons
Give Tally real accounts: register and log in with Server Actions and Argon2, keep sessions in an httpOnly cookie, redirect with a proxy, and enforce privacy in the data access layer.
- 6
Rendering, caching and performance
6 lessons
Make Tally fast and findable: understand static and dynamic rendering, cache data safely, optimise images and fonts, set metadata, stream with Suspense, and audit with Lighthouse.