Next.js is a React framework that makes building powerful full stack (front end + back end) applications a lot easier.
The team behind Next.js recently released Next.js 13 which has a whole lot of futures like a new app Directory, server and client components, and more.
Before you continue, this article assumes you have a basic knowledge of JavaScript, React, and Next.js. If you need to brush up on those skills, here are some beginner-friendly resources:
- Learn JavaScript – curriculum and interactive course
- Learn React – full course
- Learn Next.js – full handbook
Now if you’re ready, let’s dive in.
How to Set Up a Next.js 13 Project
To set up Next.js, you need to have Node.js and npm/yarn installed on your computer. If you dont have them, you can install them from their official websites: Node.js website and npm website (but npm is included when you install Node).
- In your desired directory, launch your terminal and run the following
npx create-next-app@latest --experimental-app. - Enter your project name and click enter and wait for it to install.
- A new directory with your project name will be created with the necessary files.
- cd your way into the new directory:
cd my-project-name
Next.js 13 app
About Hasanur Rahman
Mario is a Staff Engineer specialising in Frontend at Vercel, as well as being a co-founder of Acme and the content management system Sanity. Prior to this, he was a Senior Engineer at Apple.
