×

iFour Logo

Getting started with MEAN stack development

iFour Team - August 30, 2017

Listening is fun too.

Straighten your back and cherish with coffee - PLAY !

  • play
  • pause
  • pause
Mean Stack Development

MEAN stack is collection of JavaScript-based web technologies that includes MongoDB, Express, AngularJS, NodeJS widely used by web development companies..

 

Table of Content


Introduction


MongoDB

MongoDB is an open source cross-platform NoSQL documentation database that is written in C++. MongoDB Stores data in JSON-like documents. Indexing, Ad hoc queries and real-time aggregation is the key features of MongoDB to analyze data. MongoDB is published under the GNU Affero General Public License. You can use MongoDB Manual for reference.

Express

Express is a minimal and flexible Node.js web application development development framework. Middleware and routing are the key features of Express. Middleware is a concept that express uses to protect the application in layered structure. Several popular Node.js frameworks are built in express. Express uses node.js Http module to handle request.

AngularJS

AngularJS is JavaScript framework. That is used to build single page application.

NodeJS

Node.js is an open source JavaScript runtime-environment to executing JavaScript code in server side. Node.js uses Chrome's V8 JavaScript engine to execute JavaScript code. NPM is a package ecosystem of node.js to manage your packages in node.js application . Node.js's package ecosystem is the largest ecosystem of open source libraries in the world.

Required Technologies


Windows system

MongoDB Download from MongoDB and use Installation guide in Windows

Node.js Download and install node.js from node.org. You can find Node packages from npm

OS X system

MongoDB : Download from MongoDB and useInstallation guide in OS X

Node.js : Download and install node.js from node.org. You can find Node packages from npm

Linux system

MongoDB : Install MongoDB in Linux using installation guide in linux

Node.js : In Linux there are several different ways to install node.js.
 

  • APT package manager
  • PPA (Personal Package Archive)
  • NVM (Node Version Manager)

 

Git  Git is an open source distributed version control system. Download git for your system.

For Windows : Git for Windows.

For Mac OS X : Git for MAC OS X

For Linux : Git for Linux

Git Documentation: Documentation

Install MEAN


To start as a MEAN first install mean-cli package as globally from npm repository
 

$ npm install -g mean-cli
                      
 
Mean Stack Development Example

 

if you are using OSX, *nix, BSD then you can install mean-cli with sudo syntex

ex.

$ sudo npm install -g mean-cli
                    

after installing mean-cli type

One Stop Solution for Custom Software Development Requirement - Enquire Today

 
$ mean
                     

OR

$mean –help
                    

for list of mean cli commands.

Mean Cli Command Example

Create Your First Mean App.


To create mean app, open your command line interface and type

 
$ mean init 
                      
 

ex. for an example if your application name is mean-demo then just type

 
$ mean init mean-demo
                     
 

 

 

this will create mean-demo folder in your workspace directory.

After creating your application go into application directory and type

 
$ npm install
                      
 

that install all require dependencies in application.

After installing dependencies type $ npm start that will run your application in your browser.

 

NPM Start Application


 

 

NPM Example

 

 

 

Mean App in Browser

 

Getting started with MEAN stack development MEAN stack is collection of JavaScript-based web technologies that includes MongoDB, Express, AngularJS, NodeJS widely used by web development companies..   Table of Content 1. Introduction 2. Required Technologies 3. Install MEAN 4. Create Your First Mean App. Introduction MongoDB MongoDB is an open source cross-platform NoSQL documentation database that is written in C++. MongoDB Stores data in JSON-like documents. Indexing, Ad hoc queries and real-time aggregation is the key features of MongoDB to analyze data. MongoDB is published under the GNU Affero General Public License. You can use MongoDB Manual for reference. Express Express is a minimal and flexible Node.js web application development development framework. Middleware and routing are the key features of Express. Middleware is a concept that express uses to protect the application in layered structure. Several popular Node.js frameworks are built in express. Express uses node.js Http module to handle request. AngularJS AngularJS is JavaScript framework. That is used to build single page application. NodeJS Node.js is an open source JavaScript runtime-environment to executing JavaScript code in server side. Node.js uses Chrome's V8 JavaScript engine to execute JavaScript code. NPM is a package ecosystem of node.js to manage your packages in node.js application . Node.js's package ecosystem is the largest ecosystem of open source libraries in the world. Read More: How Mean Stack Is Useful For Web Development? Required Technologies Windows system MongoDB Download from MongoDB and use Installation guide in Windows Node.js Download and install node.js from node.org. You can find Node packages from npm OS X system MongoDB : Download from MongoDB and useInstallation guide in OS X Node.js : Download and install node.js from node.org. You can find Node packages from npm Linux system MongoDB : Install MongoDB in Linux using installation guide in linux Node.js : In Linux there are several different ways to install node.js.   APT package manager PPA (Personal Package Archive) NVM (Node Version Manager)   Git  Git is an open source distributed version control system. Download git for your system. For Windows : Git for Windows. For Mac OS X : Git for MAC OS X For Linux : Git for Linux Git Documentation: Documentation Install MEAN To start as a MEAN first install mean-cli package as globally from npm repository   $ npm install -g mean-cli     if you are using OSX, *nix, BSD then you can install mean-cli with sudo syntex ex. $ sudo npm install -g mean-cli after installing mean-cli type One Stop Solution for Custom Software Development Requirement - Enquire Today See here   $ mean OR $mean –help for list of mean cli commands. Create Your First Mean App. To create mean app, open your command line interface and type   $ mean init   ex. for an example if your application name is mean-demo then just type   $ mean init mean-demo       this will create mean-demo folder in your workspace directory. After creating your application go into application directory and type   $ npm install   that install all require dependencies in application. After installing dependencies type $ npm start that will run your application in your browser.              

Build Your Agile Team

Enter your e-mail address Please enter valid e-mail

Categories

Ensure your sustainable growth with our team

Talk to our experts
Sustainable
Sustainable
 

Blog Our insights

Unleash the Power of Explainable AI in Banking Software Development
Unleash the Power of Explainable AI in Banking Software Development

Table of Content 1.What exactly is Explainable AI? 1.1.Techniques used in XAI 2.What is the need for Explainable AI? 3.Role of Explainable AI in improving...

How Blockchain can impact the Financial industry in 2023?
How Blockchain can impact the Financial industry in 2023?

Table of Content 1.Boosts payment transparency, trust, and efficiency 2.Reduces operational risks and enables real-time verification 3.Eliminates central authority to...

How Hyperautomation technology is transforming the Finance industry?
How Hyperautomation technology is transforming the Finance industry?

Table of Content 1.Automates customer services, claim processing, and fraud detection 2.Error-free and provides better decision-making opportunities 3.Increased efficiency,...