Skip to content

Dependencies

Mathias Goncalves edited this page Mar 8, 2023 · 2 revisions

The Migas server is built atop FastAPI, and leverages Strawberry for the GraphQL API and SQLAlchemy for the ORM.

A PostgreSQL database is used for persistent data storage.

A Redis in-memory database is used for rate limiting and caching.

Migas uses the following Environmental Variables to locate each dependency.

Service Environmental Variable Alternatives Required
redis REDIS_TLS_URI, MIGAS_REDIS_URI n/a At least one
postgres DATABASE_URL DATABASE_USER, DATABASE_PASSWORD, DATABASE_NAME Yes

Additionally, when connecting to the database with sqlalchemy, you can set the MIGAS_DEBUG variable to display the SQL queries being carried out when using the ORM.

Clone this wiki locally