Search The Hostwinds Guides Knowledge Base

Install MEAN Stack on Ubuntu 18.04 (4 Steps)

Share This Article

What is the MEAN Stack?

The MEAN stack has been quickly rising in popularity as a rubust Javascript-based development stack. The name MEAN referes to its components; MongoDB, ExpressJS, AngularJS, and NodeJS.

Step 1: Install MEAN

For this installation, we will be using Ubuntu 18.04 in this guide.

Before starting, make sure you run the following commands on your Hostwinds VPS or Dedicated Server to make sure you are up to date:

Step 2: Install MondoDB

You have the option of installing MongoDB from the Ubuntu repository, but it is frequently out of date. We will be installing right from the MongoDB repository.

Add the MongoDB key:

The next step is to create a file by using your preferred text editor. We will be using vi in this guide:

Once you have the file open, add the following line:

Next, install:

Step 3: Install NodeJS, Git, and NPM

You can install the LTS version of Node from the package manager:

Step 4: Install Remaining Dependancies

The easiest way to get everything else set up is to clone the repo to the path where you will be building your project. You can use the following command:

Navigate to the new directory:

Use NPM to automatically set up all remaining dependancies:

Now you can utilize NPM to spin up the server for your application:


Related Articles: