MongoDB with Async Python Transcripts
Chapter: FastAPI Example
Lecture: FastAPI Introduction
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
With that fairly involved application we just wrote, where we have Beanie and we're answering certain questions,
0:09
we built that TUI, that text user interface application that allows us to ask questions like, how many packages do we have?
0:17
Let's create a user, let's add a release to a package, find me the most recently used ones. We created that in a really well-structured way.
0:26
We had our models, we had our services that aggregated the database calls and isolated all the queries that we wrote.
0:34
Well, all that nice code that we put in place, we can reuse that for any kind of application. And in this chapter, we're gonna build a fast
0:42
and pretty simple, but still realistic FastAPI app. And this will allow us to take that same code, but to surface it as a true HTTP, JSON, RESTful API
0:54
with even cool things like documentation based on our database classes in FastAPI. So we're gonna go through and do that right now.
1:06
If you know FastAPI, that's great. You'll probably learn a few things, and in a minimum, it'll be cool to plug Beanie into it.
1:13
And if you're new to FastAPI, don't worry, we'll talk about all the things you need to know during this chapter.
1:19
It's a pretty straightforward framework that's a lot of fun to use. So I'm excited to get into it with you.