📝 Add docs for virtual environments and environment variables, update contributing (#1082)

This commit is contained in:
Sebastián Ramírez
2024-08-23 14:03:39 -05:00
committed by GitHub
parent 45f49d57c1
commit c96d6b791c
12 changed files with 1299 additions and 266 deletions

View File

@@ -10,14 +10,14 @@ FastAPI is the framework to create the **web API**.
But we also need another type of program to run it, it is called a "**server**". We will use **Uvicorn** for that. And we will install Uvicorn with its *standard* dependencies.
Make sure you [have a virtual environment activated](../index.md#create-a-python-virtual-environment){.internal-link target=_blank}.
Then install FastAPI.
Then install FastAPI and Uvicorn:
Make sure you create a [virtual environment](../../virtual-environments.md){.internal-link target=_blank}, activate it, and then install them, for example with:
<div class="termy">
```console
$ python -m pip install fastapi "uvicorn[standard]"
$ pip install fastapi "uvicorn[standard]"
---> 100%
```

View File

@@ -42,12 +42,12 @@ If you haven't done testing in FastAPI applications, first check the <a href="ht
Then, we can continue here, the first step is to install the dependencies, `requests` and `pytest`.
Make sure you do it in the same [Python environment](../index.md#create-a-python-virtual-environment){.internal-link target=_blank}.
Make sure you create a [virtual environment](../../virtual-environments.md){.internal-link target=_blank}, activate it, and then install them, for example with:
<div class="termy">
```console
$ python -m pip install requests pytest
$ pip install requests pytest
---> 100%
```