Difference between revisions of "MongoDB and NodeJs"

(Installation)
(Installation)
Line 22: Line 22:
 
>sudo mkdir -p /data/db
 
>sudo mkdir -p /data/db
 
>sudo chown -Rv rasimsen /data/db
 
>sudo chown -Rv rasimsen /data/db
 +
>brew services start mongo #start/stop/status
 
</source>
 
</source>

Revision as of 16:00, 7 November 2018

MongoDB

NodeJs

Installation

We will install :

  • MongoDb
  • Node
  • Robomongo - editor

brew - package manager can be used on MacOs

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

https://brew.sh/

Mongo Installation:

>brew install mongo
>mongod
>sudo mkdir -p /data/db
>sudo chown -Rv rasimsen /data/db
>brew services start mongo #start/stop/status