Ice Cream RESTapi: THE START

Dependency Installation Guide!

Introduction

In this tutorial, I will guide you through the process of installing the necessary dependencies for this application. We will be using Express, Nodemon, Mongoose, and MongoDB to start.

Prerequisites

Before we begin, make sure you have the following prerequisites:

  • Node.js ~v16.20.0
  • A code editor of your choice, I will be using Visual Studio in this tutorial.
  • Basic knowledge of the command line interface and powershell directory maneuvering.
  • Windows Operating System

Let's GET started!

STEP 1: Create an empty folder that will hold the project!

The running root folder for this application will be /IceCream

STEP 2: Run "npm init" in the Project's Directory

 Navigate to the root folder of the project using Windows PowerShell. For this tutorial, my root folder is going to be IceCream because it is delicious. Once your PowerShell is in the correct folder type the following command and hit enter until you're brought back to the console.

ENTER THIS:

npm init

  If you notice, after running that command the project folder has become populated with a bunch of files that make this application operational.

STEP 3: Installing the other Libraries!

Here are the libraries we will work with:

  • Nodemon
  • Dotenv
  • Mongoose@5.5.7
  • Express@4.16.4
  • Type the following commands into the PowerShell CLI!

    npm i nodemon dotenv
    npm i express@4.16.4
    npm i mongoose@5.5.7
    

    Congratulations if you've made it this far! Next, we will be hopping into VS code to start working on the IceCream Store's RESTapi!