Building a URL Shortener With FastAPI and Python (Overview)
In this video course, you’ll build a URL shortener with Python and FastAPI. URLs can be extremely long and not user-friendly. This is where a URL shortener can come in handy. A URL shortener reduces the number of characters in a URL, making it easier to read, remember, and share.
By following this step-by-step project, you’ll build a URL shortener with Python and FastAPI. At the end of this course, you’ll have a fully functional API-driven web app that creates shortened URLs that forward to target URLs.
In this video course, you’ll learn how to:
- Create a REST API with FastAPI
- Run a development web server with Uvicorn
- Model an SQLite database
- Investigate the auto-generated API documentation
- Interact with the database with CRUD actions
- Optimize your app by refactoring your code
This URL shortener project is for intermediate Python programmers who want to try out FastAPI and learn about API design, CRUD, and interaction with a database. To follow along, it’ll help if you’re familiar with the basics of handling HTTP requests. If you need a refresher on FastAPI, Python REST APIs With FastAPI is a great introduction.
00:00 Build a URL Shortener with FastAPI and Python.
00:06 URLs can be long and unfriendly. This is where a URL shortener can come in handy. A URL shortener reduces the number of characters in a URL, making it easier to read, remember, and share.
00:21 In this course, you’ll build a URL shortener with Python and FastAPI. By the end, you’ll have a fully functional API-driven web app that creates shortened URLs that forward to target URLs.
00:35 In this course, you’ll learn how to create a REST API with FastAPI, run a development web server with Uvicorn, model a SQLite database, investigate the auto-generated API documentation, interact with the database with CRUD actions, and optimize your app by refactoring your code.
00:58 This URL shortener project is for intermediate Python programmers who want to try out FastAPI and learn about API design, CRUD, and interaction with a database. To follow along, it’ll help if you’re familiar with the basics of handling HTTP requests.
01:17 If you need a refresher on FastAPI, then this Real Python course is a great introduction.
01:24 So now you know what the course is going to cover, let’s get started.
Become a Member to join the conversation.