Flask Vibe Tutorials

Learn Flask + PostgreSQL + Vanilla JS through practical examples

Filters

intermediate 45 minutes

Modular Vanilla JS That Outperforms Frameworks

In 2026, properly modularised vanilla JavaScript — paired with AI tooling and native browser APIs — matches framework productivity while delivering smaller bundles, zero abstractions, and 100/100 Lighthouse scores. This tutorial shows you the full architecture: reactive state, component pattern, client-side router, and lazy loading.

135 views Read More
beginner 25 minutes

Transactional Email with Resend

Send welcome emails, password resets, and notifications from Flask using the Resend API. Keep your routes thin with a reusable utils/email.py helper.

188 views Read More
intermediate 35 minutes

Password Reset Flow

Build a complete forgot-password flow: generate a secure time-limited token, email a reset link, validate it, and update the password safely.

150 views Read More
beginner 30 minutes

Deploying Flask to Railway

Take your Flask + PostgreSQL app from localhost to a live Railway deployment. Covers Procfile, gunicorn, managed database setup, and environment variables.

167 views Read More
intermediate 35 minutes

Building a JSON REST API

Build a clean JSON API in Flask with consistent response envelopes, API key authentication via database lookup, and proper HTTP status codes.

156 views Read More
beginner 20 minutes

Pagination: OFFSET and Cursor-Based

Add page-by-page navigation to any Flask listing with LIMIT/OFFSET, then level up to cursor-based pagination for high-performance lists that never slow down.

170 views Read More
intermediate 35 minutes

Full-Text Search with PostgreSQL

Add powerful search to your Flask app using PostgreSQL's built-in tsvector and tsquery — no Elasticsearch, no extra service, no extra cost.

212 views Read More
intermediate 40 minutes

Testing Flask Routes with pytest

Write reliable tests for your Flask routes using pytest and Flask's built-in test client. Covers fixtures, test databases, JSON assertions, and mocking external APIs.

153 views Read More
beginner 25 minutes

File Uploads with Validation

Handle file uploads safely in Flask: validate file types and sizes, use secure_filename, save to disk, and store the path in PostgreSQL.

100 views Read More
intermediate 40 minutes

Localization with Flask-Babel

Translate your Flask app into multiple languages using Flask-Babel. Covers string extraction, .po files, locale detection, and a language switcher.

131 views Read More
intermediate 30 minutes

PostgreSQL Connection Pooling with psycopg2

Stop opening a new database connection on every request. Learn how to use psycopg2's ThreadedConnectionPool to reuse connections efficiently.

173 views Read More
beginner 20 minutes

Rate Limiting with Flask-Limiter

Protect your routes from abuse and brute force attacks with Flask-Limiter. Set per-route limits, customize error responses, and use Redis for production.

164 views Read More