diff --git a/Python FastAPI.md b/Python FastAPI.md index 1aff1be..1283a9e 100644 --- a/Python FastAPI.md +++ b/Python FastAPI.md @@ -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 -`(.venv) pip install -r requirements.txt` \ No newline at end of file +`(.venv) pip install -r requirements.txt` + +## Hello world + +```python +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +def read_root(): + return {"Hello": "World"} + +``` + +