Skip to content

Slartibartfass2/ingredient_collector

Repository files navigation

codecov GitHub issues GitHub code size in bytes MIT License GitHub release (latest by date) Report Issue

Logo

ingredient_collector - 0.5.0

An app that collects ingredients from recipe websites and combines them into a shopping list.

Test it out »

Report Bug Request Feature
Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. Releasing
  7. License

About The Project

ingredient_collector uses HTTP requests to collect the ingredients of a recipe website and combines them into a shopping list.

Built with

  • Flutter

(back to top)

Getting Started

Prerequisites

  1. Install flutter

  2. Run flutter doctor -v

  3. Make sure there is no category with an error.

Installation

  1. Clone the repo

    git clone https://github.com/Slartibartfass2/ingredient_collector.git
    cd ingredient_collector
  2. Run setup file

    On Windows run:

    .\setup.ps1

    On Linux/macOS run:

    bash setup.ps1
  3. Run it on your preferred device

    flutter run -d <device-id>

    You can list all available devices using

    flutter devices
  4. Run the following commands to build the release version

(back to top)

Usage

  1. Enter recipe information. Enter recipes

  2. Submit your request. Submit

  3. Results are listed in the text area. Result

  4. Now you can copy the ingredients to your note app e.g. Google Keep.

(back to top)

Roadmap

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the Branch (git push origin feat/AmazingFeature)
  5. Open a Pull Request

Adding support for a recipe website

  1. Add a new parser in ./lib/src/recipe_parser/ extending RecipeParser.

    class ExampleParser extends RecipeParser {
      const ExampleParser();
    
      @override
      RecipeParsingResult parseRecipe(
        Document document,
        RecipeParsingJob recipeParsingJob,
      ) {
        ...
      }
    }
  2. Add the new supported website in ./lib/src/recipe_controller/recipe_website.dart.

    exampleWebsite("https://www.example.org", ExampleParser());
  3. Add tests in ./test/recipe_parser_tests/ to ensure the parsing works.

(back to top)

Releasing

  1. Change version in pubspec.yaml
  2. Change version in README.md
  3. Add changelog entry in CHANGELOG.md

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)