Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 905 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 905 Bytes

example-fastapi

A Simple Example of Using rewire with FastAPI

This repository showcases how to use rewire to set up a development environment for a FastAPI application.

Configuration

Our application uses two configuration files: config.yaml and .plugin.yaml.

config.yaml - Application-Wide Configuration

This file contains settings that apply to the entire application, such as database URLs or third-party API keys.

.plugin.yaml - A List of Folders to be Automatically Loaded

By listing folders in this file, we can use rewire to automatically import files inside.

To run the example application, follow these steps:

  1. Clone the repository: git clone https://github.com/rewirepy/example-fastapi
  2. Navigate to the project directory: cd example-fastapi
  3. Install dependencies: pip install -r requirements.txt
  4. Run the application: python __main__.py