|
| 1 | +# Recipe For Success |
| 2 | + |
| 3 | +No idea what to cook? No worries! The Recipe For Success app does the thinking for you. |
| 4 | + |
| 5 | +## Table of Contents |
| 6 | + |
| 7 | +- [Description](#description) |
| 8 | +- [Features](#features) |
| 9 | +- [Technologies Used](#technologies-used) |
| 10 | +- [Installation](#installation) |
| 11 | +- [Usage](#usage) |
| 12 | +- [Screenshots](#screenshots) |
| 13 | +- [Contributors](#contributors) |
| 14 | +- [Acknowledgements](#acknowledgements) |
| 15 | + |
| 16 | +## Description |
| 17 | + |
| 18 | +Recipe For Success is a web application that generates personalized recipes based on user preferences and dietary restrictions. Utilizing the OpenAI API for text and image generation, this app provides unique recipes complete with AI-generated images. |
| 19 | + |
| 20 | +The application is hosted on Vercel and can be accessed at [Recipe For Success](https://recipe-for-success-iota.vercel.app/). |
| 21 | + |
| 22 | +## Features |
| 23 | + |
| 24 | +- **Cuisine Selection**: Choose from Italian, Chinese, Peruvian, or Random. |
| 25 | +- **Dietary Requirements**: Specify if you are lactose intolerant, vegan, or list specific foods you don't eat. |
| 26 | +- **Dark/Light Mode**: Toggle between dark and light themes. |
| 27 | +- **Loading Indicator**: Displays a loading message while generating your recipe. |
| 28 | +- **Recipe Display**: Shows the recipe along with an AI-generated image. |
| 29 | +- **Text-to-Speech**: Have the recipe read out loud for accessibility. |
| 30 | +- **Email Recipe**: Send the recipe to your email. |
| 31 | +- **New Recipe Button**: Easily request another recipe. |
| 32 | + |
| 33 | +## Technologies Used |
| 34 | + |
| 35 | +- **Frontend**: HTML, CSS, JavaScript |
| 36 | +- **Backend**: Node.js, Express |
| 37 | +- **API**: OpenAI API for text and image generation |
| 38 | +- **Accessibility**: Text-to-Speech |
| 39 | +- **Other**: Email integration, Dark/Light mode toggle |
| 40 | +- **Hosting**: Vercel |
| 41 | + |
| 42 | +## Installation |
| 43 | + |
| 44 | +### Install Dependencies |
| 45 | + |
| 46 | +`npm install dotenv express node nodemailer openai type nodemon` |
| 47 | + |
| 48 | +### Setup Environment Variables |
| 49 | + |
| 50 | +Create a `.env` file in the root directory and add your OpenAI API key and other necessary configurations. |
| 51 | + |
| 52 | +### Run the Application |
| 53 | + |
| 54 | +`npm run devStart` |
| 55 | + |
| 56 | +## Usage |
| 57 | + |
| 58 | +Open the application in your browser. |
| 59 | +Select your desired cuisine (Italian, Chinese, Peruvian, or Random). |
| 60 | +Indicate any dietary requirements (lactose intolerant, vegan, or specify other restrictions). |
| 61 | +Click the button and wait for the recipe to be generated. |
| 62 | +View the recipe along with an AI-generated image. |
| 63 | +Use the text-to-speech feature to hear the recipe. |
| 64 | +Email the recipe to yourself or request a new recipe. |
| 65 | + |
| 66 | +## Screenshots |
| 67 | + |
| 68 | +### Home Screen |
| 69 | + |
| 70 | +<div align="center"> |
| 71 | + <img src="public/image/Screenshot 2024-05-18 at 08.19.25.png" width="500"> |
| 72 | +</div> |
| 73 | + |
| 74 | +### Dietary Requirements |
| 75 | + |
| 76 | +<div align="center"> |
| 77 | + <img src="public/image/dietary.png" width="500"> |
| 78 | +</div> |
| 79 | + |
| 80 | +### Specify Other Dietary Requirements |
| 81 | + |
| 82 | +<div align="center"> |
| 83 | + <img src="public/image/other.png" width="500"> |
| 84 | +</div> |
| 85 | + |
| 86 | +### Toggle Dark Mode |
| 87 | + |
| 88 | +<div align="center"> |
| 89 | + <img src="public/image/darkmode.png" width="500"> |
| 90 | +</div> |
| 91 | + |
| 92 | +### Loading Indicator |
| 93 | + |
| 94 | +<div align="center"> |
| 95 | + <img src="public/image/loading.png" width="500"> |
| 96 | +</div> |
| 97 | + |
| 98 | +### Recipe Result |
| 99 | + |
| 100 | +<div align="center"> |
| 101 | + <img src="public/image/recipe.png" width="500"> |
| 102 | +</div> |
| 103 | + |
| 104 | +### Email Recipe |
| 105 | + |
| 106 | +<div align="center"> |
| 107 | + <img src="public/image/email.png" width="500"> |
| 108 | +</div> |
| 109 | + |
| 110 | +## Contributors |
| 111 | + |
| 112 | +- Sam Hill |
| 113 | +- Josue |
| 114 | + |
| 115 | +## Acknowledgements |
| 116 | + |
| 117 | +Thanks to OpenAI for their API. |
| 118 | +Inspiration from various cooking apps. |
| 119 | +Special thanks to Founders and Coders for providing the basic knowledge to pursue the project. |
| 120 | +Special thanks to everyone who helped with the project. |
0 commit comments