Let’s create the backend part of the course management application by taking the steps below.

Step 1: Navigate to our working directory

To begin creating our Node.js project, we need to move to the working directory we’ll use to initialize a new project. For this course, we’ll use the educative folder. To do that, we use the command below:

cd educative

Note: A new folder can also be created in our local machine to follow along with the course.

Step 2: Initialize a new Node.js project

Since we have Node.js installed, we already have the npm command available in our terminal. We’ll use the npm command to initialize a new project by running the command npm init -y. The -y flag helps us avoid any interactive prompt during initialization.

Get hands-on with 1400+ tech skills courses.