MongoDB World 2019: Open source command line power tools for developers

mongodb 235 views 11 slides Jul 15, 2019
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

Learn how to install and use some essential timesaving command-line shortcuts for developers including installing multiple versions of MongoDB for testing, generating realistic sample data, and wrangling JSON.


Slide Content

POWERED BY:
Open source command line power tools for developers
Hosted by Stennie
COMMUNITY POD

Agenda
-Get familiar with the command-line for your O/S

-Learn about some open source MongoDB tools for developers

-Install and play :)

Prerequisites
-If you want to install some of the tools on your laptop
you will need Python 2.7, Python 3.6, or Docker.

-https://www.python.org/downloads/
-https://www.docker.com/get-started

-If you don’t have time or access to install, that’s OK.
You’ll still get to see what the tools look like.

m
What’s in your
MongoDB Open
Source
Toolkit?
mlaunch
*disclaimer: these are open
source projects that are not
officially supported by
MongoDB.
mgeneratejsmloginfo
jq mplotqueries

m - MongoDB Version Management
-Install and switch between multiple versions of MongoDB
for testing or development.

-m is a bash script. You can install on macOS, Linux, or
Windows*.

-If you don’t have time or access to install, that’s OK.

-https://github.com/aheckmann/m

m - MongoDB Version Management
-m --help

-m 4.0

-m 3.6

-mkdir data
m use 4.0 --dbpath ./data

mtools
github.com/rueckstiess/mtools/
m mlaunch
mgeneratejsmloginfo
jq mplotqueries

Install mtools
-pip install mtools[all] --user

-mlaunch --version

Create a local replica set for testing
-mlaunch --help

-mlaunch --replica 3

-mlaunch --list

-mongo

-mlaunch stop

Possibilities ...
-

Resources
-MongoDB Tools directory: http://mongodb-tools.com

-mtools (mlaunch, mlogfilter, mloginfo, mplotqueries):
https://github.com/rueckstiess/mtools/

-mgeneratejs: https://github.com/rueckstiess/mgeneratejs

-m: https://github.com/aheckmann/m

-jq: https://stedolan.github.io/jq/

-mongodb-js: https://github.com/mongodb-js