Weekend Annoying Task Challenge: RecipeRoulette
Built an AI-powered meal recommendation app using React, AWS Lambda, Amazon Bedrock (Nova Micro), and AWS Amplify to eliminate the daily “What should I cook?” dilemma by generating personalized recipes from available ingredients.
Vision & What the App Does
If someone asks me, “What’s for dinner?”, my first instinct is usually to open the fridge… and then immediately open Google.
Despite having ingredients available, I often spend more time deciding what to cook than actually cooking it. Even worse, I keep rotating between the same few meals because they’re familiar and easy. It’s a tiny problem, but one that repeats every single day.
That’s why I built RecipeRoulette.
RecipeRoulette is an AI-powered web application that helps answer the daily question of “What can I cook today?” Users simply enter the ingredients they already have, choose how much time they have available, and receive a personalized recipe generated using Amazon Bedrock. To keep things interesting, the application also remembers recently suggested meals during the session and avoids recommending them again, encouraging more variety in everyday cooking.
The goal wasn’t to build a complicated recipe platform. It was to solve one small, annoying everyday problem using modern serverless AWS services and generative AI.
How I Built It
RecipeRoulette uses a simple serverless architecture with React on the frontend and AWS services on the backend.
The frontend was built using React and Vite to provide a fast and responsive interface. Users enter their available ingredients, select their cooking time, and submit the request.
The frontend then sends an HTTP POST request to an AWS Lambda Function URL.
The backend is written in Python using AWS Lambda. Once Lambda receives the request, it validates the input and builds a prompt for Amazon Bedrock.
For the AI model, I used Amazon Nova Micro, which generates recipe suggestions based on the user’s available ingredients and cooking constraints.
To make the responses consistent, I designed the prompt with several rules:
- Only use ingredients supplied by the user.
- Respect the available cooking time.
- Avoid meals that were recently suggested.
- Prefer recipes suitable for users in India.
- Return only structured JSON so the frontend can display the response directly.
After Amazon Bedrock returns the response, the Lambda function parses the JSON and sends it back to the React application, where the meal name, description, ingredient list, and cooking steps are displayed to the user.
The frontend is hosted using AWS Amplify, which is connected directly to my GitHub repository. Every new push automatically triggers a fresh deployment, making updates quick and simple.
AWS Services Used / Architecture Overview
RecipeRoulette is built entirely using managed AWS services.
- AWS Amplify hosts the React frontend and provides automatic deployments from GitHub.
- AWS Lambda runs the backend without requiring any server management.
- Amazon Bedrock provides access to the Amazon Nova Micro foundation model for recipe generation.
- AWS IAM securely grants Lambda permission to invoke Amazon Bedrock.
- GitHub stores the source code and integrates with Amplify for continuous deployment.
Architecture
User │ ▼AWS Amplify (React Frontend) │ ▼Lambda Function URL │ ▼AWS Lambda (Python) │ ▼Amazon Bedrock │ ▼Amazon Nova Micro │ ▼Recipe Response (JSON) │ ▼React FrontendThis architecture is completely serverless. The frontend communicates directly with Lambda, Lambda invokes Amazon Bedrock, and the generated recipe is returned to the browser as structured JSON. There are no servers to provision or maintain, allowing the application to remain lightweight and scalable.
What I Learned
This project was much more than connecting a frontend to an AI model—it gave me hands-on experience building and deploying a complete serverless application on AWS.
I learned how to connect a React application to AWS Lambda using Function URLs, invoke Amazon Bedrock from Python, configure IAM permissions, and deploy a production-ready frontend with AWS Amplify.
The biggest learning experience came while debugging.
Initially, the frontend couldn’t communicate with Lambda because of CORS configuration issues. After investigating browser network requests and CloudWatch logs, I identified conflicting CORS headers and corrected the Lambda Function URL configuration. Once that was resolved, I encountered a model validation error caused by an incorrect Amazon Bedrock model identifier. Updating the application to use Amazon Nova Micro with the correct request format resolved the issue.
Although these problems were unexpected, solving them gave me a much deeper understanding of how frontend applications, Lambda, and Amazon Bedrock work together.
More importantly, this project reinforced an idea I really enjoy about cloud development: you can build useful applications without managing infrastructure. By combining React, AWS Lambda, Amazon Bedrock, and AWS Amplify, I was able to turn a small everyday annoyance into a working AI-powered application over a weekend.
Link to App or Repository
Try RecipeRoulette
🌐 Live Demo
💻 Source Code
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article