Frontend

How to Create a Next.js App Using App Router (Beginner Guide)

Next.jsReact.jsNode.jsFrontend

Introduction

Next.js is a React framework that enables server-side rendering (SSR), static site generation (SSG), and modern routing out of the box. It is widely used for building fast, SEO-friendly web applications.


Step 1 — Verify Node.js Installation

Make sure Node.js and NPM are installed on your system:

node -v
npm -v

Step 2 — Create a New Next.js App

npx create-next-app@latest my-next-app

Step 3 — Navigate to Project Directory

cd my-next-app

Step 4 — Start Development Server

npm run dev

Step 5 — Understand App Router Structure

app/
 ├── page.tsx
 ├── layout.tsx
 ├── globals.css

Step 6 — Create a New Page

Create a folder inside app:

mkdir app/about

Create page.tsx inside it:

export default function AboutPage() {
  return <h1>About Page</h1>;
}


Step 7 — Build for Production

npm run build

Step 8 — Start Production Server

npm start

Useful NVM Commands

| Command | Description | |-------|--------------------------| | npm run dev | Start development server | | npm run build | Build for production | | npm start | Run production server | | npx create-next-app | Create new app |


Troubleshooting

If port 3000 is busy:

PORT=3001 npm run dev

Conclusion

Next.js simplifies React development by providing routing, SEO optimization, and performance improvements out of the box.


Need a development partner?

If you don’t want to manage all this yourself, you can work with a dedicated team:


Author

Marquefactory DevOps Team

Need help applying this?

Discuss your software idea, product roadmap, or internal system

If this article connects to a product idea, workflow problem, MVP plan, or custom platform requirement, we can help you turn it into a scoped delivery plan. MarqueFactory works with founders and businesses that need senior technical judgment, not just implementation tickets.

  • MVP planning and custom SaaS development
  • Web apps, mobile apps, and internal systems
  • Architecture, delivery roadmap, and build estimates
  • Senior-led product and engineering guidance

Related Services

If this topic connects to a real build, these are the pages most likely to help you evaluate fit, scope, and delivery approach.

Useful Tools

These free tools are useful on their own, and they also reflect the kinds of systems we help businesses turn into custom platforms.

Related Articles