How to Create & Deploy a Python Web Application FAST (fastHTML Tutorial)
Sven Bosau
0:00 / 0:00
How to Create & Deploy a Python Web Application FAST (fastHTML Tutorial)
35 288 просмотров · 2 года назад
Sven Bosau
117 тыс. подписчиков
35 288 просмотров · 2 года назад
👉 Learn Excel Automation with Python: https://yt.pythonandvba.com/_o31SB3NL...
𝗗𝗘𝗦𝗖𝗥𝗜𝗣𝗧𝗜𝗢𝗡
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
In this video, we're building a web app from scratch using a new Python package called FastHTML. This digital guestbook lets everyone leave a message, and it's all done without any JavaScript! For the database, we're going to use PostgreSQL from Supabase. To create the web app, it will be helpful if you know some HTML. However, if you are completely new to web development, don't worry. This tutorial will be beginner-friendly. I'll guide you through each step, from installing FastHTML to deploying your web application for free. By the end, you'll have your very own live guestbook on the internet!
#PythonWebApp #FastHTML #PythonProject
⚠️ Disclaimer: This guestbook was heavily inspired by @mattpalmer 's guestbook solution, which he showcased in this video: • FastHTML is the newest way to build web ap...
I reached out to Matt before releasing the video and asked for permission to “borrow” his idea. Thanks, Matt 🙏
🌍 𝗟𝗜𝗡𝗞𝗦:
▶ Live Website: https://guestbook.pythonandvba.com/
▶ Souce Code: https://github.com/Sven-Bo/fasthtml-g...
▶ fastHTML Docs: https://docs.fastht.ml/
▶ Pico Docs: https://picocss.com/docs
▶ Supabase: https://supabase.com/
▶ Gitignore Generator: https://gitignore.io/
▶ Vercel: https://vercel.com/
⭐ 𝗧𝗜𝗠𝗘𝗦𝗧𝗔𝗠𝗣𝗦:
00:00 – Introduction
00:48 – Installing FastHTML
01:04 – Running the Example Code locally
01:38 – Explaining FastHTML with Example Code
03:45 – Styling the Application with Pico CSS
04:32 – Creating a Multi-Page Application
05:08 – Building the Guestbook Form
10:13 – Connecting to a Postgres Database with Supabase
12:30 – Fetching Data from the Database
14:07 – Inserting New Data into the Database
15:58 – Handling Form Submissions with FastHTML
17:35 – Adding a Favicon
17:55 – Deploying the Web Application to Vercel
20:28 – Testing the Live Application
20:39 – Outro
𝗠𝗢𝗥𝗘 𝗙𝗥𝗢𝗠 𝗠𝗘
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🧰 My Excel add-ins and Windows apps: https://yt.pythonandvba.com/_o31SB3NL...
🔗 LinkedIn: / sven-bosau
📬 Contact: https://yt.pythonandvba.com/_o31SB3NL...