Skip to content

Commit 57f4fc3

Browse files
committed
steps
1 parent aac1def commit 57f4fc3

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

source/integrations/fastapi-integration.txt

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,28 @@ Prerequisites
5959
.. procedure::
6060
:style: connected
6161

62-
.. step:: Set-up
62+
.. step:: Set-up
63+
64+
.. step:: Clone the example code from the `mongodb-with-fastapi repository <https://github.com/mongodb-developer/mongodb-with-fastapi>`__:
6365

64-
.. step:: Clone the example code from the `mongodb-with-fastapi repository <https://github.com/mongodb-developer/mongodb-with-fastapi>`__:
66+
.. code-block:: shell
6567

66-
.. code-block:: shell
67-
68-
git clone [email protected]:mongodb-developer/mongodb-with-fastapi.git
68+
git clone [email protected]:mongodb-developer/mongodb-with-fastapi.git
6969

70-
.. step:: Install the required dependencies listed in the ``requirements.txt`` file:
70+
.. step:: Install the required dependencies listed in the ``requirements.txt`` file:
7171

72-
.. tip:: Use a Virtual environment
72+
.. tip:: Use a Virtual environment
7373

74-
Installing your Python dependencies in a `virtualenv
75-
<https://docs.python.org/3/tutorial/venv.html>`__ with allow for versions
76-
of the libraries to be install for individual projects. Before running
77-
pip, ensure your ``virtualenv`` is active.
74+
Installing your Python dependencies in a `virtualenv <https://docs.python.org/3/tutorial/venv.html>`__ with allow for versions of the libraries to be install for individual projects. Before running pip, ensure your ``virtualenv`` is active.
7875

79-
.. code-block:: shell
76+
.. code-block:: shell
8077

81-
cd mongodb-with-fastapi
82-
pip install -r requirements.txt
78+
cd mongodb-with-fastapi
79+
pip install -r requirements.txt
8380

84-
It may take a few moments to download and install your dependencies.
81+
It may take a few moments to download and install your dependencies.
8582

86-
.. step:: Create an environment variable for your MongoDB connection string:
83+
.. step:: Create an environment variable for your MongoDB connection string:
8784

8885
.. code-block:: shell
8986

@@ -95,7 +92,7 @@ Prerequisites
9592
environment variable. You can use `direnv <https://direnv.net/>`__ to make
9693
this process easier.
9794

98-
.. step:: Start your FastAPI server:
95+
.. step:: Start your FastAPI server:
9996

10097
.. code-block:: shell
10198

@@ -109,7 +106,7 @@ Prerequisites
109106
.. image:: /includes/integrations/fastapi-browser.png
110107
:alt: Screenshot of browser and swagger UI
111108

112-
.. step:: Create Your Application
109+
.. step:: Create Your Application
113110

114111
All the code for the example application is stored in ``app.py``.
115112

0 commit comments

Comments
 (0)