Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Final Additions to our Smart Cooking API with Node.js

via CodeSignal

Overview

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.

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

Reviews

Start your review of Final Additions to our Smart Cooking API with Node.js

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.