Skip to content

Commit

Permalink
Add Option for 'set' command for Environment Variables along with Exp…
Browse files Browse the repository at this point in the history
…ort (#176)

* correct uri variable setting eg

* double quotations

* tags
  • Loading branch information
rachel-mack authored and rustagir committed Apr 10, 2024
1 parent 37cec5a commit 521561f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions source/quick-start.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
Quick Start
===========

.. default-domain:: mongodb
.. facet::
:name: genre
:values: tutorial

.. meta::
:keywords: set up, runnable app, initialize, connect

.. contents:: On this page
:local:
Expand Down Expand Up @@ -35,19 +40,22 @@ a connection string similar to the following in your copy buffer:
Set Your Connection String
~~~~~~~~~~~~~~~~~~~~~~~~~~

Run the following code at the command prompt to save your MongoDB connection string to an
Run the following code at the command prompt to save your MongoDB
:ref:`connection string <csharp-connect-to-mongodb>` to an
environment variable. This method is safer than including your credentials in your source
code.

.. code-block:: bash

export MONGODB_URI='<your MongoDB URI>'
export MONGODB_URI="<your MongoDB URI>"

.. important::

Make sure to replace the ``<username>`` and ``<password>`` sections of the connection
string with the username and password of your Atlas user.

For more information about connection strings, see :manual:`Connection Strings </reference/connection-string/#connection-strings>`.

Set Up Your Project
-------------------

Expand Down

0 comments on commit 521561f

Please sign in to comment.