Sitemap
Karan Joura

Karan Joura

I am Senior Software Engineer with over 6+years of experience in full-stack software development. I have worked on various domains like telecom, e-commerce, etc

Next.Js Code Setup

1 min readAug 21, 2022

--

My Dear Friends,

Get Karan Joura’s stories in your inbox

Join Medium for free to get updates from this writer.

In my previous story, I set some milestones to achieve Next.Js journey. In this story, I, Karan, your guide will help you to do code setup for Next.Js.

How to do Next.js code setup?

We will create our new Next.js app using create-next-app, which sets up everything automatically for us. To create a next.js project, run:

npx create-next-app@latest
# or
yarn create next-app
# or
pnpm create next-app

How to run Next.js project

After the installation is complete:

  • Run npm run dev or yarn dev or pnpm dev to start the development server on http://localhost:3000
  • Visit http://localhost:3000 to view your application

After you start the development server, the first page you view in browser will be like below:

  • Edit pages/index.js and see the updated result in your browser

Next we will learn about folder structure of Next.Js project.

- Karan Joura

--

--

Karan Joura
Karan Joura

I am Senior Software Engineer with over 6+years of experience in full-stack software development. I have worked on various domains like telecom, e-commerce, etc