https://fastapi.hubi.club/docs
- press
F1
in VS Code - search for
Python: Create Environment
- select interpreter
cd 'C:\Users\Sebi\Documents\4tes Semester\Cloud Computing\FastAPI\'
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Restricted #if Activate.ps1 is no longer needed
#inside: FastAPI folder:
.\.venv\Scripts\Activate.ps1
#inside: FastAPI\my_app\app:
uvicorn main:app --reload #starts uvicorn server
python -m install uvicorn
py -m pip freeze > requirements.txt #save all libs