Create an app
Run the create-next-app command. The recommended setup includes the App Router, TypeScript, Tailwind CSS, and the default @/* import alias.
The App Router uses the app directory for pages and shared layouts:
Project structure
app/
layout.js // shared HTML and page shell
page.js // the home pageRun it locally
Open the new project folder, then start the development server:
Terminal
cd my-appOpen localhost:3000 in your browser to see the starter page.
For additional options, see the official Next.js installation guide.