Check changes automatically
Tests and builds follow your code on every push. Add tests for endpoint behaviour so changes are checked in a way your team can follow.
Build your application logic with FastAPI, on your own or with your AI agent. MainPath gives your Python backend a project foundation and a workflow for tests, builds and deployment.
Open the backend repository of your MainPath project and start its local environment. Develop your Python endpoints and check their behaviour before sharing the next version.
mp run-localBring your checked code onto main. The prepared pipeline starts there.
Checks run, then the pipeline creates the Docker image for your Python backend.
The pipeline deploys the built version to Dev. Try the API with its clients as well.
When the version is ready, start the manual production step. A push alone does not publish to production.
Connect your own Sentry account and enable Sentry for the FastAPI backend. Errors then appear with a stack trace and release version in your Sentry project.
MainPath prepares the workflow. Data, external services and access rules need to fit your application.
Use the database and storage paths intended for your backend. Enable Easy Backup when needed for supported MySQL backends in production.
Keep private API keys and credentials in managed secrets. Do not put them in application code or unencrypted custom files.
Give Dev and production the appropriate values. Add your own values in the documented custom files and leave generated configuration unchanged.
Authentication, authorization, validation and data handling are part of your FastAPI code. A reachable API still needs application-level security.
Tests and builds follow your code on every push. Add tests for endpoint behaviour so changes are checked in a way your team can follow.
Connect your API domain for production. MainPath shows the required DNS records and sets up HTTPS on the connected server.
Start from a FastAPI template or talk to us about bringing your existing backend to MainPath.
FastAPI is one of the supported backend stacks. Your agent checks the existing project and its mapping before importing it.
The pipeline builds a Docker image and deploys it to the project’s connected server. Set up your own API domain for production. A web frontend or mobile app in the same MainPath project can use the backend.
Build the integration in your FastAPI code and keep the required credentials in managed secrets. MainPath does not automatically provide AI models, GPU resources or background workers for that integration.
No. Easy Backup is an optional setting for supported MySQL backends in production. For error tracking, connect your Sentry account and enable Sentry for the component.
MainPath maintains generated files such as .gitlab-ci.yml and generated.yaml. Put your own environment values in the documented custom files and private values in managed secrets. Use MainPath configuration or contact support for additional automation.