Installing MongoDB on Ubuntu 15.10
Download and install packages [source]:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Make it run with systemd instead of upstart [source]:
sudo mkdir -p /data/db/
sudo nano /lib/systemd/system/mongodb.service
Insert this code:
[Unit] Description=High-performance, schema-free document-oriented database After=network.target [Service] User=mongodb
ExecStart=/usr/bin/mongod --quiet [Install] WantedBy=multi-user.target
Reload service units:
sudo systemctl daemon-reload
Save and start the service:
sudo service mongodb start
Check whether it runs:
sudo service mongodb status
Create a node.js express application using MongoDB
You need this package first:
sudo apt-get install libkrb5-dev
Afterwards you can follow this guide from the point where he starts to install express and to create the app. With the above preparations everything else worked like he described it – you get a system based on a database model that you can edit on a webpage in no time. Have fun!