What is the MEAN stack?
M in MEAN stands for MongoDB. MongoDB is a simple NoSql and object-oriented database technology that is efficient and scalable for large data storage. MongoDB stores data as objects in JSON format, in separate documents instead of storing in rows and columns like in a typical relational database. This increases productivity in the manipulation and retrieval of data in abundance.
E in MEAN stack stands for express JS. Express js or express is a node js framework that promotes the rapid development of node-based web and mobile applications. Express supports the MVC framework which helps in building more scalable, structured and dynamic websites. Express focuses more on the back-end or the developer side.
A in mean stack stands for Angular. Angular is an MVC framework for the client end or front end. Angular allows us to create a strong interactive web or mobile application. It also has great support for creating cross-platform and progressive web applications.
step 1: update
Update your package manager of SUSE
sudo zypper update
step 2: Install MongoDB
The first thing to do is to import the key from the official site.
sudo rpm –import https://www.mongodb.org/static/pgp/server-4.2.asc
now add MongoDB repository to your system
sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/15/mongodb-org/4.2/x86_64/" mongodb
you can use this command to install the latest version of MongoDB.
sudo zypper -n install mongodb-org
Once the installation is complete, start and enable your database.
sudo systemctl start mongod sudo systemctl enable mongod
if your database fails to run then execute the following command and start Mongo again.
sudo systemctl daemon-reload
you can also check the status through the following command.
sudo systemctl status mongod
Step 3: installing Node JS
you can search for packages to install
sudo zypper search nodejs
choose between the package and simply run to install node js
sudo zypper in nodejs10
check the version through node -v
sudo dnf module install nodejs:10
step 4: install express js
run the following command to get and install express JS in fedora.
First install npm,
npm install -g express
Once you have express installed you can create a directory and navigate in it to create a project.
mkdir projectName cd projectName express npm install
Step 5:installing angular
use npm to install angular cli by running the following command
npm install --global @angular/cli
Once you have your angular cli install, you can use the ‘ng’ package to create a new angular application to try your new installation.
ng new hello-angular cd hello-angular ng serve