vault backup: 2023-08-08 09:09:19
Affected files: Python FastAPI.md
This commit is contained in:
parent
bf5110c028
commit
dc29f830a6
|
@ -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"}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue