grahamjenson / ger

Good Enough Recommendation (GER) Engine
378 stars 47 forks source link

MongoDB / Mongoose ESM #39

Open akreienbring opened 9 years ago

akreienbring commented 9 years ago

Hello, did you ever think about a MongoDB / Mongoose storage manager?

I'm currently thinking about using GER but switching over to RethinkDB is a little hurdle. Especially as RethinkDB is (so far) not available for my Windows System.

grahamjenson commented 9 years ago

Hey,

There is a well tested Event Store Manager (ESM) API that you could implement using MongoDB or Mongoose if you wanted. The easiest way to do this is to read what the in memory ESM is doing and try replicate that in a class using Mongo, then running the tests to see what passes and what fails.

If you submit a pull request with a Mongo ESM that passes all the tests I will merge it :) Having a Mongo ESM would be pretty cool too

muneerulhudha commented 8 years ago

Hello, I was wondering if a MongoDB ESM was built for this?

grahamjenson commented 8 years ago

No, and I have no plans in the near future to implement one. I have made GER in such a way that you could implement one without a PR as a seperate npm package. The interface required has many tests and is well defined :)