The author worked on a FastAPI project that tracked books using the Google Book API and provided AI-powered recommendations using Marvin AI. The project was containerized using Docker for reliable and repeatable deployment. A Dockerfile was created to define how the project would be packaged and run inside the container. The author used a clean project structure to improve build efficiency, dependency management, security, and maintainability. A .dockerignore file was created to keep the Docker image small and clean. The Docker image was built and run locally using Docker commands. The author used Docker Compose to set up a PostgreSQL database for the project. The FastAPI app and PostgreSQL database were deployed to Fly.io, a cloud platform that supports Docker containers. The app was connected to the PostgreSQL instance, and database migrations were applied using Alembic. Finally, the author tested the app on Fly.io and provided tips for debugging and testing.
pybit.es
pybit.es
Create attached notes ...
