CollegeChops is a web application designed to help students discover, search, and share recipes that are easy to make and budget-friendly. Users can search for recipes in the database, upload their own recipes, and browse through a variety of dishes.
- Recipe Search: Search for recipes by name. If a recipe is not found in the database, the app fetches it from an external API.
- Dynamic Database: The app fetches new results from the OpenAI API, ensuring a constantly evolving collection of recipes.
- Recipe Upload: Users can upload new recipes, including details such as ingredients, instructions, difficulty, and cost.
- Browse Recipes: Display recipes from the database on the home page, arranged in a user-friendly layout.
- Python 3.x
- Flask
- SQLAlchemy
- Requests
- OpenAI API Key
- Clone the repository:
git clone https://github.com/yourusername/CollegeChops.git cd CollegeChops
- Clone the repository:
git clone https://github.com/yourusername/RecipeViewer.git cd RecipeViewer
- Set up a virtual environment:
python3 -m venv env source env/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
- Set the OpenAI API Key as an environment variable (Please make sure you replace
your_openai_api_key
with your actual OpenAI API key):export OPENAI_API_KEY=`your_openai_api_key`
- Run the app on your computer
python flask-server/app.py
- Running Tests
python -m unittest test_app.py