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

Support MongoDB as an alternate data store #7

Open
ghostwriternr opened this issue Sep 20, 2020 · 3 comments
Open

Support MongoDB as an alternate data store #7

ghostwriternr opened this issue Sep 20, 2020 · 3 comments
Labels
enhancement New feature or request Hacktoberfest This issue counts towards Hacktoberfest contributions

Comments

@ghostwriternr
Copy link
Member

Not everyone has access to AWS. MongoDB is free and Open Source, so R2-D2 should be extended to allow the use of either data stores. This won't be straightforward but could be a pretty interesting task : )

@ghostwriternr ghostwriternr added enhancement New feature or request Hacktoberfest This issue counts towards Hacktoberfest contributions labels Sep 20, 2020
@feildrixliemdra
Copy link

hi there @ghostwriternr I'd like to help this as a participant of Hacktoberfest.
Does this enhancement mean to

  1. add mongodb image in docker-compose for local development
  2. create connection to mongodb from the golang app

Please correct me or add more detail if my opinion above is incorrect. Thanks

@ghostwriternr
Copy link
Member Author

Hi @feildrixliemdra! The goal of this issue is to enable R2-D2 to use MongoDB as a datastore instead of DynamoDB, since DynamoDB is AWS exclusive. Support for MongoDB can enable deployment of R2-D2 completely in non-AWS environments.

So, this would require writing a clean abstration over the DB layer that can be extended by Mongo/Dynamo and have a config that controls which DB will be used. Adding docker-compose support would be an addition after this is done, so that local development becomes easy.

Let me know if you have any further questions! 😄

@feildrixliemdra
Copy link

i got it, i think i can help this but i need some time. I will update this through this pr #18 .
I tried to run the apps but the documentation only tell to copy the env and docker-compose up while it return errors. If you can provide steps to run R2-D2 apps locally that would be great! thanks @ghostwriternr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest This issue counts towards Hacktoberfest contributions
Projects
None yet
Development

No branches or pull requests

2 participants