Use Codex as your coding partner to scaffold a modular Flask backend for an AI cooking assistant. Build the app factory, Blueprints, SQLAlchemy models, SQLite setup, and CLI scripts while learning to review and refine assistant-generated code.
Overview
Syllabus
- Unit 1: Initializing a Flask App and Setting Up the Database
- Assembling the Full Flask App Factory
- Launching the Flask Development Server
- Configuring Flask with Environment Variables
- Unit 2: Designing Models and Relationships for a Cooking App API
- Laying the Data Layer Foundation
- Wiring Relationships Between Cooking Models
- Hardening the Cooking Data Layer
- Unit 3: Creating a Safe Database Reset Script for Your Cooking App
- Building the Reset Script Skeleton
- Finishing the Database Reset Script
- Safeguarding Resets with Automatic Backups
- Unit 4: Creating a Command-Line Script to Add Recipes Manually
- Building the Recipe Input Layer
- Persisting Recipes to the Database
- Guarding Recipes Against Bad Writes