0%

Next.js Getting Started

Next.js install

Next.js is a framework for server-rendered React applications as well as statically exported React apps.

Getting Started

To get the first next app, just type the code below.

1
2
C:\Blog\Next.js
λ npm init next-app nextjs-blog

Then just waiting the npm install the package

After install whole package there will be a nextjs-blog folder, enter it

1
2
C:\Blog\Next.js
λ cd nextjs-blog

Then just run the local server

1
2
C:\Blog\Next.js\nextjs-blog
λ npm run dev

The local server website will be http://localhost:3000

The website looks like simple and clear