1) Install dependencies:
pip install fastapi uvicorn python-jose passlib[bcrypt]
pip install python-jose[cryptography]
pip install python-multipart
2) Create a small App:
Create a project and create a main.py
file should contain the app code.
3) Run the app:
Redirect to the project structure where main.py
is located and run the below command:
uvicorn main:app --reload
4) Swagger Documentation:
The swagger documentation for the app would be present at → http://127.0.0.1:8000/docs
In case you want to reset your GIT repo - (Hard Reset)
git reset --hard HEAD
git pull