This is a practice repository to learn backend development using Python-Fast API
-
Create Virtual Environment:
python3 -m venv venv(Execute this command first time)source venv/bin/activate(Execute this command eveytime before starting local server) -
Install Dependencies:
pip install fastapi uvicorn python-dotenv structlog -
Then freeze:
pip freeze > requirements.txt
-
Enter virtual environment:
source venv/bin/activateNote: Executedeactivateto exit the virtual environment -
Start the server:
uvicorn app.main:app --reload
- Open: http://127.0.0.1:8000/health
- Also check: http://127.0.0.1:8000/docs (Auto-generated OpenAPI docs.)