Full Web Apps with FastAPI Transcripts
Chapter: Deploying FastAPI on Linux with gunicorn and nginx
Lecture: Deployment introduction

Login or purchase this course to watch this video and the rest of the course contents.
0:00 So we built a really fine web application with dynamic templates and static files and all
0:06 that awesome stuff that most web frameworks have, on top of FastAPI and that's great. It leaves us the option to do all the API
0:13 side of things with the best API framework out there in addition to doing all the cool web things. But web apps are not fun for you, just you and
0:22 yourself. The whole idea of a web app is you put it on the Internet with a domain and the whole world is now there to find your app through search,
0:31 through other ways of getting the word out and hopefully start using it. So in this chapter, what we're gonna do is take the app that we
0:38 built and deploy it. We're gonna put it out on a Linux server, on the Internet. We don't quite go so far as to map the domain name to it
0:47 because we don't have a domain name. But it's really a, short, short step to go from what we're gonna do in this chapter to actually having
0:53 a product on the Internet and it's gonna be awesome. Now, here we are in the github repository. Over here,
0:59 you can see we have a link, cause we don't actually have source code for this
1:01 chapter because we're not going to deploy the app we built here. In our other FastAPI course we already deployed an application,
1:08 and it is literally identical to this application. Now, technically, the contents that show on the screen are not the same.
1:16 I'll show you that, it's right here. We built this weather endpoint. So it's a, whether service or whether API but also you can see
1:23 right here we've got things like static files, we've got this dynamic template and so on. It's actually exactly the same.
1:29 If we click on it, it even does some cool API stuff right there. Apparently, it's lightly raining
1:35 now. We're going to deploy this application and here's the source code with all the config files and stuff that you might want to work with.
1:43 You can make a very slight adjustment to deploy the app that we're doing here.
1:47 Given that we did such a polished job deploying that weather application on Ubuntu, out on the Internet, I think it makes most sense for us to go
1:54 through and look at that example there. The adjustments are incredibly small, but hopefully you'll have a great time putting your web
2:02 application out on the Internet for all the world to consume.


Talk Python's Mastodon Michael Kennedy's Mastodon