We follow this directory structure: https://fastapi.tiangolo.com/deployment/docker/?#directory-structure
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
fastapi dev app/main.py
Open .lyrid-definition and change the App and Module name, because this will override another applications with the same name in the platform.
lc code submit
Wait until the cloud platform to finish with the build and the default deployment.
Edit the routes and codes at /main folder with your custom API.
Add more middlewares or your business logic in there.