karlomikus / bar-assistant

Bar assistant is a all-in-one solution for managing your home bar
https://barassistant.app
MIT License
525 stars 22 forks source link

Feature Request - Import via GitHub Repo URL #259

Closed zhdenny closed 8 months ago

zhdenny commented 8 months ago

https://github.com/karlomikus/bar-assistant/releases/tag/v3.2.0

Ever since version 3.2.0 you provide a method to export everything to a zip file and import everything from a zip file. The zip file follows the same structure as your GitHub bar assistant data project https://github.com/bar-assistant/data

The default bar ingredients/cocktails are taken directly from your GitHub bar-assistant data repo.

Can there be a method to import data from a different GitHub repo if the same file/folder structure exists?

karlomikus commented 8 months ago

That repo gets pulled to bar assistant when building a docker image to resources/data folder.

One thing you can try, if you want to have a custom initial data, is to mount a new volume to that directory like this:

./my-initial-bar-data:/var/www/cocktails/resources/data

I haven't tried this but let me know if you try it and it works

zhdenny commented 8 months ago

Interesting but That is not quite what I am after.

I'm seeing if I can utilize GitHub's PR system against a Bar-Assistant Bar so a variety of users can contribute in a more Reviewed/Approved fashion.

And then when a new ingredient/cocktail is merged on GitHub there be a simple way for those additions/changes to propagate into active Bar-Assistant instances (either via command line or GUI).

karlomikus commented 8 months ago

The data repository is only used for initial bar data. Pulling new data from a github repository or any other source and syncing it into existing bars is not something that is in the scope of this project.

zhdenny commented 8 months ago

Ahh, I see. Ok. Thanks for responding