MongoDB: Difference between revisions
From charlesreid1
| Line 39: | Line 39: | ||
==First Project with Python and MongoDB== | ==First Project with Python and MongoDB== | ||
http://docs.mongodb.org/ecosystem/tutorial/write-a-tumblelog-application-with-flask-mongoengine/ | link: [http://docs.mongodb.org/ecosystem/tutorial/write-a-tumblelog-application-with-flask-mongoengine/] | ||
==Cheat Sheet== | ==Cheat Sheet== | ||
Revision as of 20:09, 30 January 2018
Getting Started
Install
Debian/Ubuntu
MongoDB provides instructions for installing on Debian/Ubuntu. The short version: don't do apt-get install mongodb.
Here's what you do:
- Add the mongodb aptitude repositories to your aptitude
- Update your aptitude
- Install a mongodb package from mongodb.org
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list sudo apt-get update sudo apt-get install -y mongodb-org
These assume you have ubuntu xenial, see link [1] for other LTS releases.
Homebrew
Was able to install this ok with Homebrew: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/#install-mongodb-community-edition-with-homebrew
brew update brew install mongodb
or to install the development version:
brew update brew install mongodb --devel
First Project with Python and MongoDB
link: [2]
Cheat Sheet
https://blog.codecentric.de/files/2012/12/MongoDB-CheatSheet-v1_0.pdf
Design of Databases
Design Patterns and Data Models
https://docs.mongodb.com/manual/applications/data-models/
August 2016
Reset with Mongodb, now August 2016, here's what we're doing:
Scapy/Wifi Database - storing wifi data in a MongoDB instance
[3] - to help get going, use Python pymodm module