vault backup: 2023-08-08 09:09:19

Affected files:
Python FastAPI.md
This commit is contained in:
ed barz 2023-08-08 09:09:19 +02:00
parent bf5110c028
commit dc29f830a6
1 changed files with 16 additions and 1 deletions

View File

@ -24,4 +24,19 @@ To save the dependency list, you can run the pip freeze command and send the out
Later on, when you deploy your application on a server, you will be able to run Later on, when you deploy your application on a server, you will be able to run
`(.venv) pip install -r requirements.txt` `(.venv) pip install -r requirements.txt`
## Hello world
```python
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}
```