Skip to content

Learn Next.js for Free: App Router Course with Real Output (English and Arabic)

NeedMyTools Academy

Start free: sign in first

One free account opens every full lesson, the graded tests, your progress on any device and a certificate of completion. Sign in with an email code or Google in under a minute.

  • Full lessons and exercises
  • Graded tests that unlock the next lesson
  • Certificate with a QR code anyone can verify
Sign in or create a free account

Free forever. No card, no paywall.

Already signed in? The same button opens your panel.

Just looking? Each lesson shows a short preview without an account.

Next.js is one of the most widely used frameworks for building full websites with React. React gives you components; Next.js adds the rest of a real site: a URL for every page, HTML that is ready before JavaScript loads, data loading and secrets on the server, APIs, metadata for search engines and a production build. This course teaches the current version, Next.js 16 with the App Router, from your first page to a bilingual English and Arabic site you deploy yourself. Next.js needs Node.js and a server, so it cannot run in a browser tab like our earlier courses. Instead, every example shows the files and the real output we recorded by running them: terminal logs, build tables, served HTML and the exact error messages.

Quick answer

Learn Next.js after React, in this order: the App Router with pages, layouts and dynamic routes; server and client components; data fetching and caching; route handlers for APIs; metadata and SEO; internationalisation and right-to-left layout; then a project you deploy. Know React components, props, state, effects and lists first, plus basic TypeScript, because Next.js code is React code with a few extra rules.

Level:
Intermediate, after React
7 lessons
About 5 hours plus practice
Content checked on 26 November 2026
0 of 7 lessons done on this device
Start the course

Lessons

  1. 1App Router and pagesCreate a Next.js app and run it with next dev and next build · Turn folders into URLs with page.tsx files · Share a header and navigation with layout.tsx and Link · Build dynamic pages with [segment] folders, params and generateStaticParams35 min
  2. 2Server and client componentsExplain where Server and Client Components run and what each can do · Add "use client" only to the small parts that need interactivity · Pass data from a server component to a client component with props · Read the real build errors for useState, event handlers and server-only35 min
  3. 3Data fetching and cachingFetch data in an async server component with await · Read the Cache Components prerender error and choose a fix · Cache data with "use cache" and set its lifetime with cacheLife · Stream fresh data with Suspense and a meaningful fallback40 min
  4. 4Route handlers (APIs)Create GET and POST endpoints with route.ts files · Read and validate a JSON body and answer with the right status code · Tell from the build table which handlers are static and which run per request · Cache a handler and refresh it on demand with cacheTag and revalidateTag40 min
  5. 5Metadata and SEOSet site wide metadata and a title template in the root layout · Write generateMetadata for dynamic pages from their params · Add canonical URLs and Open Graph tags that resolve to full links · Generate robots.txt and sitemap.xml from code35 min
  6. 6Internationalisation and RTLGive each language its own URLs with an app/[lang] segment · Set lang and dir on <html> so Arabic pages render right to left · Load text from server dictionaries and write correct Arabic plurals · Add hreflang alternates and redirect visitors with proxy.ts45 min
  7. 7Project: a bilingual site you deployRead the production domain from an environment variable and know when it is fixed · Generate a sitemap with hreflang alternates for both languages · Build a standalone folder and run it with node server.js · Check a deployment with curl before you tell anyone it is live60 min

NeedMyTools Academy

Sign in with a free account (email code or Google, no password) to open every lesson in full. Each lesson ends with a short test graded on our server, and the next lesson only unlocks after you pass. Pass the module tests, the final project and the final exam to get a certificate of completion with a transcript that anyone can check on this site. Without an account you can read a short preview of each lesson.

How grading works

  • Each lesson: pass the exercise (checked on our server), then a 5-question test with 4 correct. The test opens after you have spent some time on the lesson.
  • Three fails in a row lock that test for 30 minutes. Leaving a test unfinished counts as a fail.
  • Each module ends with a 10-question test (7 to pass, 3 tries a day). The course ends with the project and a 25-question final exam (18 to pass, 3 tries a day).
  • Questions are drawn at random and many have values that change for every student, so sharing answers does not help.
  • The certificate says what it is: a certificate of completion for an unsupervised online assessment, not a degree or an accredited qualification.

What you will be able to do

  • Build pages, layouts and dynamic routes with the App Router
  • Decide what runs on the server and what runs in the browser
  • Load data on the server and choose to cache it or stream it
  • Read the Next.js build output and its error messages with confidence

Who this course is for

People who can build small React components and want to ship real websites: front end developers moving to full stack, freelancers building company sites and online shops in the Gulf, and students who want the framework most React job adverts ask for. Finish the free React course here first; the TypeScript course helps, since all examples use TypeScript as new Next.js apps do. To repeat the examples you need a computer with Node.js 20.9 or newer, a code editor and a terminal. A phone is fine for reading the lessons and passing the quizzes.

Why learn Next.js

A plain React app sends an almost empty HTML page and builds everything in the browser. That is slow on weak phones and hard for search engines, and it leaves you to choose and wire routing, data loading and a server yourself. Next.js makes those choices for you in a way many large companies use in production: pages are rendered to HTML on the server or at build time, data and secrets stay on the server, and the build tells you exactly how each page is served. For a business site, an online shop or a content site that needs Google traffic, that is the difference between a page that ranks and one that does not.

How the examples work: real recorded output

Our HTML, CSS, JavaScript and React courses run your code live in the page. Next.js cannot work that way: it needs Node.js, a build step and a server, and running those for every visitor would be neither safe nor free. So each example in this course is a small real project. We create it with the official `create-next-app` defaults, run the commands, and copy what came out: the terminal log, the route table from `next build`, the HTML the server sent, and error messages exactly as printed. Each example says what was run, and the lesson says the Next.js version and the date. When we shorten long output we label it as an excerpt. Exercises are single files that the page checks by reading your code, and the text tells you how to try them in your own project.

Which version this course teaches

The lessons use Next.js 16 with the App Router, TypeScript and Cache Components, which are the defaults `create-next-app` sets up for new projects today. You will still meet older code at work: the Pages Router in a `pages` folder, synchronous `params`, and caching options such as `export const revalidate`. Where the old way differs, the lesson says so, so you can read older projects and tutorials without being misled by them. The facts are checked against the official Next.js documentation, and each lesson lists the pages it used.

After this course

  • Node.js · LiveJavaScript on the server: modules, files, npm, HTTP servers and Express.
  • HTTP and APIs · LiveHow browsers and servers talk: requests, status codes, REST, JSON, CORS and auth.
The learning path

Questions about this course

Is this Next.js course free and in Arabic?

Yes. Every lesson is in English and Arabic and free to read. Code, file names and error messages stay in English, as they are in real projects, and the Arabic text explains each one.

Do I need to know React before Next.js?

Yes. Every Next.js page is a React component, and the lessons assume you know props, state, effects and lists. Without React, errors such as the useState one in lesson 2 are confusing. The free React course here covers what you need.

Can I follow this Next.js course on Windows?

Yes. Next.js supports Windows, macOS and Linux, and Windows users can also use WSL. Install Node.js 20.9 or newer, open a terminal and run `npx create-next-app@latest`. The commands in the lessons are the same on every system.

Where can I host a Next.js site?

Anywhere that runs Node.js, such as a VPS or a container, and on platforms with Next.js support, including Vercel, Netlify and Cloudflare. A site with no server features can also be exported as static files. The last lesson walks through one deployment step by step.

Does Next.js work for Arabic right-to-left websites?

Yes. You set `lang` and `dir` on the `<html>` tag in the root layout, and use CSS logical properties so layouts flip correctly. Lesson 6 builds English and Arabic versions of the same pages with their own URLs.

Code examples stay in English and run in a sandbox on your device. If you spot a mistake, tell us through the contact page.