Next.js 15 Fullstack (App Router + Server Actions) · Lektion

Projekt einrichten und CLI

Lernen Sie, wie Sie ein neues Next.js-15-Projekt initialisieren und mithilfe der Befehlszeilenschnittstelle durch die grundlegende Projektstruktur navigieren.

Lektion 1 von 411 Schritte

Projekt einrichten und CLI ist eine kostenlose Next.js 15 Fullstack (App Router + Server Actions)-Lektion auf CoddyKit. Dies ist Lektion 1 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Next.js 15 Fullstack (App Router + Server Actions)-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Next.js 15 Fullstack (App Router + Server Actions)-Kurs umfasst insgesamt 4 Lektionen.

Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.

Next.js 15: Your First Step

Welcome to Next.js 15 — the React framework for fast, scalable, production-ready apps. First up: spinning up a project and reading its structure from the CLI.

What You'll Need

Before you start, you need Node.js 18.17 or later — it provides the JavaScript runtime, and its package manager (npm, Yarn, or pnpm) installs your dependencies.

Initializing Your Project

Spin up a new project with create-next-app — it scaffolds everything for you. Just run this in your terminal.

npx create-next-app@latest

Setup Prompts Explained

The CLI asks a few questions. The one that matters: say Yes to App Router — it's essential for Next.js 15. ESLint and Tailwind are nice; TypeScript is optional.

Navigating Your New Project

When it finishes you get a new project folder. Step into it with cd and you're ready to work.

cd my-next-app

Your Project Structure

Know the key generated files: app/ holds your pages and layouts, public/ static assets, package.json your deps and scripts, next.config.js the config.

The Core `app` Directory

The app/ directory drives the App Router: layout.js for shared UI, page.js for a route's unique view, and globals.css for global styles.

Project Scripts & `npm run dev`

Your scripts live in package.json. The one you'll use constantly is npm run dev — it starts the development server.

npm run dev

Hello Next.js!

With the dev server running, open localhost:3000 to see your app. That page is rendered by app/page.js — here's a stripped-down version.

export default function Home() {
  return (
    <main>
      <h1>Hello CoddyKit!</h1>
    </main>
  );
}

Quick Check: Setup Basics

You've learned how to kickstart a Next.js project. Let's test your knowledge!

Recap: Your First Next.js Steps

Recap: you set up Next.js 15 with create-next-app, explored the app/ directory, and launched the dev server. Next: file-system routing.

Kostenlos starten

Lerne TypeScript mit einem KI-Tutor — kostenlos

Schreibe und führe echten Code in deinem Browser aus, bekomme sofortige Hilfe von einem 24/7 KI-Tutor und setze dein Lernen im Web oder in der App fort.

Kurse
22
Lektionen
88

Häufig gestellte Fragen

Ist die Lektion „Projekt einrichten und CLI“ kostenlos?

Ja — der vollständige Text von „Projekt einrichten und CLI“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Next.js 15 Fullstack (App Router + Server Actions)-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Next.js 15 Fullstack (App Router + Server Actions)-Kurs umfasst insgesamt 4 Lektionen.

Was lerne ich in „Projekt einrichten und CLI“?

Lernen Sie, wie Sie ein neues Next.js-15-Projekt initialisieren und mithilfe der Befehlszeilenschnittstelle durch die grundlegende Projektstruktur navigieren. Du übst Next.js 15 Fullstack (App Router + Server Actions) mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.

Brauche ich Erfahrung, um Next.js 15 Fullstack (App Router + Server Actions) zu starten?

Keine Vorkenntnisse erforderlich. Next.js 15 Fullstack (App Router + Server Actions) auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 1 von 4.

Wie lange dauert die Lektion „Projekt einrichten und CLI“?

Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.

Kann ich in dieser Next.js 15 Fullstack (App Router + Server Actions)-Lektion Code schreiben und ausführen?

Ja. Jede Next.js 15 Fullstack (App Router + Server Actions)-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.

Alle Lektionen in diesem Kurs

  1. Projekt einrichten und CLI
  2. Grundlagen des dateisystembasierten Routings
  3. Überblick über Seiten und Layouts
  4. Ihre Next.js-App stylen
← Zurück zu Next.js 15 Fullstack (App Router + Server Actions)