foxhound87 / rfx-stack

RFX Stack - Universal App
MIT License
419 stars 42 forks source link

DB agnostic or rethinkDB support #21

Open carlditzler opened 8 years ago

carlditzler commented 8 years ago

rfx-stack requires mongoose, and I am using feathers-rethinkdb; prefer a single DB. Enhancement supporting a flexible DB or add'l DBs would extend rfx-stack and reduce dependencies. Thanks

foxhound87 commented 8 years ago

I used mongo as demo. Because Feathers already supports more dbs out of the box you can change the implementation easly. For example, If you want to use rethinkdb, remove all the mongo dependencies first, then:

You should remove the models because rethinkdbdash doesn't support a model schema. Consider using something like thinky if you want models: https://thinky.io

I will create a detailed guide.

You can follow the feathers database doc for more info on how to implement rethinkdb: http://docs.feathersjs.com/databases/rethinkdb.html

briandpassa commented 8 years ago

A detailed guide will be great. Thank you! 💃

mishoboss commented 8 years ago

+1 for DB agnostic solution guide. Personally I would like to use this stack with NeDB (as it is a pure JS solution and no binaries required) and I'm stuck now understanding all the mongo dependencies implemented.

chriswessels commented 7 years ago

+1. The example should include minimal dependencies, so I'd go with NeDB. It sucks having to strip out Mongo.

Weifeng-Ying commented 7 years ago

@chriswessels I hope this can help you. [https://github.com/Weifeng-Ying/rfx-stack-NeDB/commit/ff30437a0d825b74b2b471ad67042a1cddfca85e]()