Hi, I'm Alex. A software engineer obsessed with web technologies. I love learning new technologies and building things. I share everything that I learn through my posts. Hope you enjoy reading :)
In the third part of this series, we will containerize our application using Docker.
Series Content 📖 Part 1: Laying the foundation Part 2: Migrations Part 3: Dockerize (this post) Prerequisites You will need to install:
Docker; and Docker Compose What we will cover in this post? 📝 Create a Dockerfile for our application Create Docker Compose files Update .env and config.py Create a prestart.sh file to run migrations Create a Dockerfile for our application Our Dockerfile will contain the details of how docker should build our server image.
Continuing where we left off in part one of this series, we will add migrations to our project using Alembic.
Series Content 📖 Part 1: Laying the foundation Part 2: Migrations (this post) Part 3: Dockerize Before getting started... To avoid any issues, make sure to drop the posts table from your database and run poetry install again. What we will cover in this post? 📝 What is Alembic?
In this blog post, we will set up a simple FastAPI application from scratch. This can serve as a good starting point for small to medium projects.
Series Content 📖 Part 1: Laying the foundation (this post) Part 2: Migrations Part 3: Dockerize What will we cover in this post? 📝 Generate a base project with Poetry. Install FastAPI, SQLAlchemy and other dependencies. Create the necessary files that will serve as the base of the application.