API for managing Blue Core resources and workflows using PostgresSQL and Airflow platforms.
src/bluecore_api/
│
├── app/
│ ├── __init__.py
│ ├── main.py
│ ├── config.py
│ ├── database.py
│ │
│ ├── models/
│ │ ├── __init__.py
│ │ ├── resource.py
│ │ ├── user.py
│ │ └── metrics.py
│ │
│ ├── schemas/
│ │ ├── __init__.py
│ │ ├── resource.py
│ │ ├── user.py
│ │ └── metrics.py
│ │
│ └── routers/
│ ├── __init__.py
│ ├── resources.py
│ ├── users.py
│ └── metrics.py
│
├── pyproject.yaml
└── README.md
uv pip install -r requirements.txt
, and follow the instructions that appear.docker-compose pull
to pull down all images.To start all of the supporting services (PostgresSQL, etc.):
docker-compose up -d
To start the FastAPI rest server in dev mode and run the application at http://localhost:3000:
uv run fastapi dev src/bluecore/app/main.py --port 3000
This is in development mode and code changes will immediately be loaded without having to restart the server.
Bluecore API uses [ruff].
uv run ruff check
To auto-fix errors in both (where possible):
uv run ruff check --fix
Tests are written with pytest.
To run all of the tests:
uv run pytest tests/
TBD
TBD