Add final touches to your app for better interactivity. Use gTTS for Text-to-Speech recipe playback, let users submit reviews and ratings, and list all ingredients. Build a script to export recipes to CSV.
Overview
Syllabus
- Unit 1: Adding Audio to APIs
- Implement ttsStream Core Audio Generation Function
- Register TTS Route in Express App
- Implement TTS Request Validation Logic
- Implement Text-to-Speech Streaming Endpoint
- TTS Endpoint Testing Script
- Unit 2: Listing Ingredients and Reviews
- Setup Basic Ingredients and Reviews API Endpoints
- Complete GET /ingredients Endpoint
- Implement Review Submission Endpoint with Zod Validation
- Add Input Validation to Reviews Endpoint
- Save Validated Reviews to Database
- Unit 3: Exporting Recipes to CSV
- Fix Prisma Client Import in Export Script
- Fetch Data with Prisma for CSV Export
- Implement CSV Header Writing for Export Script
- Generate Clean Ingredient List for CSV Export
- Flatten Recipe Steps for CSV Export
- Implement Recipe CSV Export
- Test the Recipe CSV Export Script