|
10 | 10 |
|
11 | 11 | 3. Your local Mongo URI will be `mongodb://<MONGO_INITDB_ROOT_USERNAME>:<MONGO_INITDB_ROOT_PASSWORD>@mongo:27017/`. Take note of it as we will be using in the `.env` file in the various microservices later on.
|
12 | 12 |
|
13 |
| -5. You can view the MongoDB collections locally using Mongo Express. To set up Mongo Express, update `ME_CONFIG_BASICAUTH_USERNAME` and `ME_CONFIG_BASICAUTH_PASSWORD`. The username and password will be the login credentials when you access Mongo Express at http://localhost:8081. |
| 13 | +4. You can view the MongoDB collections locally using Mongo Express. To set up Mongo Express, update `ME_CONFIG_BASICAUTH_USERNAME` and `ME_CONFIG_BASICAUTH_PASSWORD`. The username and password will be the login credentials when you access Mongo Express at http://localhost:8081. |
14 | 14 |
|
15 | 15 | ## Setting-up cloud MongoDB (in production)
|
16 | 16 |
|
|
49 | 49 |
|
50 | 50 | 
|
51 | 51 |
|
52 |
| - |
53 | 52 | 
|
54 | 53 |
|
55 | 54 | 7. Next, click on `Add my Current IP Address`. This will whitelist your IP address and allow you to connect to the MongoDB Database.
|
|
61 | 60 | 9. [Optional] Whitelisting All IP's
|
62 | 61 |
|
63 | 62 | 1. Select `Network Access` from the left side pane on Dashboard.
|
64 |
| -  |
| 63 | + |
| 64 | +  |
65 | 65 |
|
66 | 66 | 2. Click on the `Add IP Address` Button
|
67 |
| -  |
| 67 | + |
| 68 | +  |
68 | 69 |
|
69 | 70 | 3. Select the `ALLOW ACCESS FROM ANYWHERE` Button and Click `Confirm`
|
70 |
| -  |
| 71 | + |
| 72 | +  |
71 | 73 |
|
72 | 74 | 4. Now, any IP Address can access this Database.
|
73 | 75 |
|
74 | 76 | 10. After setting up, go to the Database Deployment Page. You would see a list of the Databases you have set up. Select `Connect` on the cluster you just created earlier.
|
75 | 77 |
|
76 |
| -  |
| 78 | +  |
77 | 79 |
|
78 | 80 | 11. Select the `Drivers` option.
|
79 | 81 |
|
80 |
| -  |
| 82 | +  |
81 | 83 |
|
82 | 84 | 12. Select `Node.js` in the `Driver` pull-down menu, and copy the connection string.
|
83 | 85 |
|
|
0 commit comments