MongoDB setup for replica set

--Linux--

1. install mongoDB
2. update mongo config file with following (path to config file: /etc/mongod.conf)

    replication:
        oplogSizeMB: 2000
        replSetName: rs0
        enableMajorityReadConcern: true

3. run mongodb 


--MacOS/Windows--

1. install run-rs package 
    npm install run-rs -g
2. run mongodb with run-rs command
    * if mongodb is already installed: run-rs --version <mongodb version>  --keep --mongod
    * if mongodb is not installed: run-rs --version <mongodb version>  --keep
    * specify a different port for db: run-rs --version <mongodb version> --keep --portStart <port>

    example command:
        run-rs --version 6.0.3 --keep --portStart 59057

### Run all services (index.js, take-action scripts, etc.)
`npm run start`

### Stop all services (index.js, take-action scripts, etc.)
`npm run stop`

### Restart all services (index.js, take-action scripts, etc.)
`npm run restart`
