The MEAN stack (MongoDB, Express.js, Angular.js & Node.js) is pretty cool if you’re looking to do some real quick smart web development, however there is a little bit of a learning curve if you’re cooming from traditional web development database platforms i.e. Relational Database Management Systems (RDBMS).
MongoDB is a document database that provides high performance, high availability, and easy scalability. Documents (objects) map nicely to programming language data types. Embedded documents and arrays reduce need for joins. Indexes can include keys from embedded documents and arrays.
Setting up MongoDB is fairly straight forward on ubuntu 14.04. Using the terminal window type in the following commands
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list
sudo apt-get update
sudo apt-get install mongodb-org
After the installation run the following command
This will now start the Mongo Process. Then you run a test to check that Mongo responds by typing ;
The mongo shell should now be available.
Install MongoDB on ubuntu 16.04
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Check out the Video
A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.
Latest posts by Gary Woodfine (see all)
- Happy 4th Blog Birthday – A blogging year in review - Dec 6, 2018
- Getting started with .NET Core and the Serverless Framework - Dec 3, 2018
- How to use the Abstract Factory design pattern in C# - Nov 18, 2018