Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exchangeable backends #30

Open
nightscape opened this issue Mar 26, 2021 · 4 comments
Open

Exchangeable backends #30

nightscape opened this issue Mar 26, 2021 · 4 comments

Comments

@nightscape
Copy link

Hi @burhanrashid52,

I'm currently in the process of switching from Todoist to org-mode as project management solution.
One thing where org-mode is a bit behind is a good-looking UI for Android.
There's orgzly and it does its job, but it's far from being intuitive.
Now I'm wondering if it would be possible to use WhatTodo as a frontend to org-mode.
In order to do that, one would have to hide the current *Database classes behind abstract classes and provide another implementation of those classes using org-mode (potentially based on code from orgro).

I'm not a 100% how much effort this would be and if I want to invest the effort, but I wanted to ask in advance if this is a direction you could see the project evolving to, i.e. WhatTodo being really nice UI for different "storage mechanisms", with a built-in DB being the default.

@nightscape
Copy link
Author

Another interesting option might be to use something like Firebase Cloud Firestore to turn this app into a collaborative one, which would almost make it a replacement for Todoist.

@burhanrashid52
Copy link
Owner

burhanrashid52 commented Mar 27, 2021

@nightscape Yes. I agree with you and I am also looking forward in the same direction. Instead of a concrete class, it should expose the abstract class. This will allow us to swipe the data source. Ex Firebase. We can have different implementations for each platform as well.
A good starting point to learn this is from flutter_architecture_samples where they have different implementation of TodoRepository.

@burhanrashid52
Copy link
Owner

I will be happy to see a PR on this :)
Let me know if you want to discuss more. We can move this into GitHub discussion.

@nightscape
Copy link
Author

The flutter_architecture_samples are exactly what I had in mind!
Down to the point where they have a ReactiveTodosRepository which streams the current Todos and therefore allows for real-time updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants