/fastapi-template

An example template of a Python API made using FastAPI.

Primary LanguagePythonMIT LicenseMIT

⚡ FastAPI Template

An example template of a Python API made using FastAPI.

Languages

🏃‍♂️ Running the API

  1. Install the required dependencies using the following command:
pip install -r requirements.txt
  1. Run the API using the following command:
  • Replace the value of --port with the port you want the API to run on.
uvicorn main:app --port 3000

📝 Notes

  • router.py contains all of the endpoints of the API.