This FastAPI project serves as a template for building backend APIs with FastAPI. The main application logic is in main.py
, containing API routers.
-
Navigate to the
specific fastapi_project
directory. -
Set up a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On Unix or MacOS:
source venv/bin/activate
-
-
Install dependencies:
pip install -r requirements.txt
-
Run the FastAPI development server:
uvicorn main:app --reload
-
Access the API at http://127.0.0.1:8000/
Feel free to explore and modify the project for your own backend development needs.