This repository showcases how to use rewire
to set up a development environment for a FastAPI application.
Our application uses two configuration files: config.yaml
and .plugin.yaml
.
This file contains settings that apply to the entire application, such as database URLs or third-party API keys.
By listing folders in this file, we can use rewire
to automatically import files inside.
- Clone the repository:
git clone https://github.com/rewirepy/example-fastapi
- Navigate to the project directory:
cd example-fastapi
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python __main__.py