Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Setting Up the Next.js Project | Setting Up a Next.js Project
Next.js 14 Mastery for Building Modern Web Apps

bookSetting Up the Next.js Project

Start a new Project

To start a new project with Next.js, navigate to the folder where you want to keep your project and run the following command in your terminal:

This command will set up a Next.js application for you using create-next-app, a Command Line Interface (CLI) tool. By using the --example flag along with the template example for this course, you will have access to a pre-built template that you can use as the foundation of your project.

Run the Development Server

To view the app locally, run the development server using the command provided below:

You can view the homepage by opening the following URL http://localhost:3000/ in your browser. It should appear like this:

In the upcoming chapter, we will delve into the structure of project file folders.

In Practice

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 1

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

What should I do if I encounter an error while running the commands?

Can I use a different folder name for my project?

How do I stop the development server once it's running?

Awesome!

Completion rate improved to 2.08

bookSetting Up the Next.js Project

Svep för att visa menyn

Start a new Project

To start a new project with Next.js, navigate to the folder where you want to keep your project and run the following command in your terminal:

This command will set up a Next.js application for you using create-next-app, a Command Line Interface (CLI) tool. By using the --example flag along with the template example for this course, you will have access to a pre-built template that you can use as the foundation of your project.

Run the Development Server

To view the app locally, run the development server using the command provided below:

You can view the homepage by opening the following URL http://localhost:3000/ in your browser. It should appear like this:

In the upcoming chapter, we will delve into the structure of project file folders.

In Practice

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 1
some-alt