Next.Js Code Setup
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-appHow to run Next.js project
After the installation is complete:
- Run
npm run devoryarn devorpnpm devto start the development server onhttp://localhost:3000 - Visit
http://localhost:3000to view your application
After you start the development server, the first page you view in browser will be like below:
- Edit
pages/index.jsand see the updated result in your browser
Next we will learn about folder structure of Next.Js project.
- Karan Joura








