- Python > 3.8
- FastApi (
pip install fastapi
) - Uvicorn (
pip install uvicorn
)
open a terminal in the app directory (cd FastApi)
-
From server.py
python server.py
-
From CLI
uvicorn src:app --reload --port 5050 --host 127.0.0.1
- Go to browser and open the url
127.0.0.1:5050
- Once the OpenAPI doc opens, try the route and put any message.