Member-only story

How to Build a Full-Stack CRUD Application with FastAPI and Streamlit, and Deploy on Kubernetes with Google Cloud Platform

Khoa Le, Ph.D.
12 min readNov 4, 2024

--

In today’s tech landscape, FastAPI and Streamlit have emerged as powerful tools for creating fast, efficient, and interactive web applications. FastAPI is a modern, high-performance web framework for building APIs with Python, designed to simplify development without compromising speed. On the front end, Streamlit makes it incredibly easy to turn data scripts into shareable web apps with minimal effort.

Building a Software as a Service (SaaS) platform can be highly rewarding, offering a way to reach users and create scalable solutions. This tutorial is designed to guide you in building a CRUD (Create, Read, Update, Delete) application from scratch. You’ll use FastAPI to handle the backend API, Streamlit for the user interface, and PostgreSQL for database management. Finally, I’ll deploy it all on Google Cloud Platform (GCP) using Kubernetes for scalability and easy management.

Project design.

This SaaS application will feature:

  1. Google Account Login and Signup: Users can register and log in using their Google accounts, making authentication simple, secure, and user-friendly.
  2. Create and Manage Posts: Logged-in users can add new posts, which are stored in a PostgreSQL database on…

--

--

Khoa Le, Ph.D.
Khoa Le, Ph.D.

Written by Khoa Le, Ph.D.

I do Data Science on Medical Imaging and Finance, and love them both.

No responses yet