Comments (7)
I'd like to add that as an alternative to dumping an OpenEats DB and importing it into Mealie, OpenEats does also expose its own API: https://github.com/open-eats/openeats-api. On the assumption that anyone wanting to go this migration route would start with a working OpenEats instance, it might be "nicer" to be able to simply point Mealie at the OpenEats server and let it pull whatever it needs using that API.
I guess there's a small discussion to be had as to whether this is a better or worse approach. Personally, I don't like that the only way (AFAIK?) to back up/restore OpenEats data is to exec
onto one of its containers and talk to the database manually. Anything that avoids me having to do that is better in my opinion.
I'm not familiar with FastAPI and its project structure, but at a guess this could piggyback on the backup_services.py in the simplest case, or better, be implemented in an import_services.py?
from mealie.
Fair enough! I just wanted to put it out there for anyone that might come to implement this.
I'm unclear on what your second point is... Fast API structure is similar to flask, as such there isn't really one. I think I've structured the project fairly well and easy to understand, atleast on the backend. Mealie already offers an export to plain text json as well as supports jinja2 templating for additional formats. See the docs for more details on this.
Sorry, I wasn't trying to comment on the existing work and structure. I just meant I haven't worked with FastAPI before, and was projecting where I thought an implementation might start based on a quick look through what is there!
from mealie.
I realize this issue is closed, but if anyone else finds this issue, I wrote a script that exports OpenEats recipes into the Nextcloud Cookbook format (a zip file with a bunch of json and images inside it) that Mealie can then import.
https://gist.github.com/jachin/508fe1b7b2717faa1da5a84ae793b027
from mealie.
Example Export: recipe_recipe.zip
Thank you!
from mealie.
I'd like to add that as an alternative to dumping an OpenEats DB and importing it into Mealie, OpenEats does also expose its own API: https://github.com/open-eats/openeats-api. On the assumption that anyone wanting to go this migration route would start with a working OpenEats instance, it might be "nicer" to be able to simply point Mealie at the OpenEats server and let it pull whatever it needs using that API.
I guess there's a small discussion to be had as to whether this is a better or worse approach. Personally, I don't like that the only way (AFAIK?) to back up/restore OpenEats data is to
exec
onto one of its containers and talk to the database manually. Anything that avoids me having to do that is better in my opinion.I'm not familiar with FastAPI and its project structure, but at a guess this could piggyback on the backup_services.py in the simplest case, or better, be implemented in an import_services.py?
I agree that point directly at the API may be a better approach. I'm hesitant to spin up an example just to test that at this point . I'd love to have it, but it's lower in my list for now. I'm happy to support a PR and/or help out on the Discord to get this done.
I'm unclear on what your second point is... Fast API structure is similar to flask, as such there isn't really one. I think I've structured the project fairly well and easy to understand, atleast on the backend. Mealie already offers an export to plain text json as well as supports jinja2 templating for additional formats. See the docs for more details on this.
To be clear, I never want to "hide" data in a database. As with all things self hosted, this project may dry up and I don't believe in making it difficult for user to access their data and migrate to another service.
from mealie.
Fair enough! I just wanted to put it out there for anyone that might come to implement this.
I'm unclear on what your second point is... Fast API structure is similar to flask, as such there isn't really one. I think I've structured the project fairly well and easy to understand, atleast on the backend. Mealie already offers an export to plain text json as well as supports jinja2 templating for additional formats. See the docs for more details on this.
Sorry, I wasn't trying to comment on the existing work and structure. I just meant I haven't worked with FastAPI before, and was projecting where I thought an implementation might start based on a quick look through what is there!
No need to apologize, I just wasn't sure what you meant. I've already created a Chowdown migration in mealie/services/migrations/chowdown.py. Any other migrations can be added as additional files there. Chowdown.py can be used as an example of how someone might accomplish this. Thanks for your interest in the project!
Cheers!
from mealie.
Closing to consolidate feature requests into a mega-issue. See new Issue. Your request has been added to the initial list.
from mealie.
Related Issues (20)
- [BUG] - Redirect /login?=code... to /login/?=code... making OIDC fail HOT 9
- [BUG] - Mealie won't load. HOT 6
- Mealie docker container fails to start due to apparent database issue HOT 18
- [BUG] - OIDC infinite loop if user is not in OIDC_USER_GROUP HOT 4
- [BUG] - Authentik not logging in correctly HOT 7
- [BUG] - OIDC is not usable with private CAs HOT 2
- [BUG] - Some English text is hardcoded in the app and not translatable HOT 5
- [BUG] - OIDC Auth not working on mobile devices HOT 6
- [BUG] - OIDC login configured but not enabled. HOT 2
- Recipe with a single 'space' as the title returns "404 page not found" - reproduced on the demo site HOT 2
- [BUG] - Duplicate recipe title leads to data loss HOT 1
- [Security] Reporting of a vulnerability HOT 4
- [Error] - migrate from Postgres 15 to 16.2 HOT 1
- [SCRAPER] - www.colruyt.be/nl/lekker-koken recipe scraping returns failed to scrape url HOT 2
- [BUG] - Startup loop/high CPU usage in Docker with 1.5.1 HOT 3
- [BUG] - Nextcloud migration fails due to malformed nutrition field HOT 1
- [BUG] - OIDC with Zitadel - Error 404 HOT 14
- Unable to delete meal planner item HOT 5
- Update mealie to HA documentation example code. HOT 1
- [BUG] - OIDC - Invalid JSON Web Key Set HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mealie.