Build a Real Web App with Python (Flask + SQLite + REST API) | GenAI Foundation Week 3
In this live session, we build a fully working Notes web app from scratch — one layer at a time — using Python, Flask, SQLite, and a REST API. No shortcuts. No magic. Just real code explained step by step. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🗺️ WHAT WE BUILD (4 Phases) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚙️ Phase 1 — Flask server with routes (no webpage yet) 🖥️ Phase 2 — Real HTML page with a form using Jinja2 templates 🗄️ Phase 3 — SQLite database so notes survive server restarts 🔌 Phase 4 — REST API with JSON so any app (or AI agent) can talk to it ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🧠 WHY THIS MATTERS FOR GenAI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Every AI agent needs to read and write data somewhere. The REST API you build today is exactly how you'd connect an AI agent to your backend — GET, POST, PUT, DELETE over HTTP + JSON. No browser required. Just the interface. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📦 WHAT YOU'LL LEARN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✅ Flask routes, request.form, render_template, redirect ✅ Jinja2 — injecting Python variables into HTML ✅ SQLite with Python's built-in sqlite3 module ✅ REST API design — GET / POST / PUT / DELETE ✅ curl for terminal testing | fetch() for browser-side calls ✅ jsonify — returning structured JSON responses from Flask ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🏗️ PROJECT STRUCTURE BY THE END ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ notes_app_phase4.py ← REST API server templates/ index.html ← HTML form (Phase 2) index_api.html ← JS fetch() SPA (Phase 4) notes.db ← SQLite database file ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📂 COURSE: GenAI Foundation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Part 1 — Python Foundations Module 1.3 — Python Web and GUI 👍 Like if you built the app along with us 🔔 Subscribe for the next live session 💬 Drop your questions in the comments — we answer everything 📅 Date: February 28th ⏰ Time: 8:00 PM IST Discord link: https://discord.gg/V35dKcApS6 GitHub Link: https://github.com/MaighaInc/pycore
Download
0 formatsNo download links available.