TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.33k stars 561 forks source link

Import recipes from Crouton #3111

Open Zk2u opened 5 months ago

Zk2u commented 5 months ago

Is your feature request related to a problem? Please describe.

I'm trying to move my recipes from the Crouton app to Tandoor

Describe the solution you'd like

Be able to import recipes from Crouton

Describe alternatives you've considered

No response

Additional context

No response

smilerz commented 5 months ago

Please share a sample of the export data.

Zk2u commented 5 months ago

Crouton exports to a ZIP file containing a bunch of .crumb files, which look to be JSON. crouton-sampl.zip

vabene1111 commented 5 months ago

perfect, thank you for the sample data.

ellezhu1 commented 4 months ago

I would like to work on this! I think I will have enough confidence and experience working in this area after my fixes for existing integrations have been accepted into the code base.

vabene1111 commented 4 months ago

feel free to give it a go! If you need any help let me know. Some "notes" for you that might help: new importers need to be added in the frontend config file (so they show up) and in the api to direct the right request to the right importer.

Also depending on the format you need to change integration.py, sadly that architecture has become a mess over the years, I need to clean that up at some point but it should work for now.

ellezhu1 commented 4 months ago

What is the path to the config file that you are referring to?

I have added the new importer to forms.py and import_export.py which are called by api.py

vabene1111 commented 4 months ago

yea that is what sadly is kind of a bit confusing, its the vue/src/utils/integration.js that is needed for the frontend