GithubHelp home page GithubHelp logo

cookseek's Introduction

Fridge Recipe Finder

Fridge Recipe Finder is a web application that helps you find recipes based on the ingredients you have in your fridge. Simply enter the ingredients, and the app will provide you with a list of recipes you can make. Additionally, you can find similar recipes and detailed cooking instructions.

Features

  • Ingredient-Based Recipe Search: Enter the ingredients you have, and get recipes that you can make with them.
  • Similar Recipes: Find recipes similar to the ones you like.
  • Cooking Instructions: Get step-by-step cooking instructions for your chosen recipe.
  • Responsive Design: Works on both desktop and mobile devices.

Technologies Used

  • Frontend: HTML, CSS, Bootstrap, EJS (Embedded JavaScript templates)
  • Backend: Node.js, Express.js
  • API: Spoonacular API
  • Environment Variables: dotenv

Prerequisites

  • Node.js
  • npm (Node Package Manager)
  • Spoonacular API Key

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/fridge-recipe-finder.git
    cd fridge-recipe-finder
  2. Install the dependencies:

    npm install
  3. Create a .env file in the root directory and add your Spoonacular API key:

    SPOONACULAR_API_KEY=your_api_key_here
    
  4. Start the application:

    npm start
  5. Open your browser and go to http://localhost:3000.

Usage

  1. Home Page: Enter the ingredients you have in the textarea provided and submit the form to get recipes.
  2. Recipe List: Click on a recipe to get the detailed cooking instructions or find similar recipes.
  3. Instructions Page: Follow the step-by-step instructions to cook your chosen recipe.
  4. Similar Recipes: Click on "Get similar recipes" to find recipes similar to the one you're viewing.

Folder Structure

fridge-recipe-finder/
├── public/
│   └── css/
│       └── styles.css
├── views/
│   ├── partials/
│   │   ├── head.ejs
│   │   ├── navbar.ejs
│   │   ├── footer.ejs
│   ├── index.ejs
│   ├── instructions.ejs
│   ├── about.ejs
├── .env
├── package.json
├── server.js
└── README.md

API Endpoints

  • GET / - Home page.
  • POST /getrecipes - Fetches recipes based on ingredients.
  • GET /getrecipes - Fetches cooking instructions for a specific recipe.
  • GET /similar - Fetches similar recipes based on recipe ID.
  • GET /about - About page.

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or suggestions, feel free to open an issue or contact the project maintainers.


Happy cooking! 🍳

cookseek's People

Contributors

adrinorosario avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.