From the course: Hands-On AI: Vibe Coding in Python with Cursor
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Project walk-through
From the course: Hands-On AI: Vibe Coding in Python with Cursor
Project walk-through
- [Speaker] We applied the Vibe coding workflow and built a complete recipe management application. In this video, let's take a deeper look at what was created. In the File Explorer, we can see Cursor created exactly what we planned, an app directory with all of our core modules. A data directory for JSON storage, a test directory for future testing, a main.py file, a PRD file, and a README file. This structure follows Python best practices, keeping data separate from logic and preparing for testing. Let's look at the data model in the model's directory. Cursor generated two data classes. The ingredient class stores both the item name and quantity as strings. This flexible approach let users enter two cups or 500 grams without complex parsing. The recipe class includes everything we specified. Name of the recipe, an optional description, instructions, a list of ingredients, plus an optional ID for organization. Moving on to json_storage_service.py file, this is where we store recipe…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.