/FastAPI

A Python repository featuring FastAPI for API backends.

Primary LanguagePython

FastAPI Projects

This FastAPI project serves as a template for building backend APIs with FastAPI. The main application logic is in main.py, containing API routers.

Getting Started

  1. Navigate to the specific fastapi_project directory.

  2. Set up a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
    • On Unix or MacOS:

      source venv/bin/activate
  4. Install dependencies:

    pip install -r requirements.txt
  5. Run the FastAPI development server:

    uvicorn main:app --reload
  6. Access the API at http://127.0.0.1:8000/

Feel free to explore and modify the project for your own backend development needs.