wkallhof / Hazel

Fast, simple, markdown powered wiki knowledge base for Node.js
http://hazel.wmk.io
GNU General Public License v3.0
118 stars 28 forks source link

Any chance to configure a Database to store data in future versions? #9

Open marcoshmendes opened 7 years ago

marcoshmendes commented 7 years ago

Hey guys, Hazel is a very nice projet, simple and useful. It would be nice if we could configure it to store data in a database. Any chance of it happens?

wkallhof commented 7 years ago

@marcoshmendes Which database setup are you using? I can certainly write something up to persist into a database.

marcoshmendes commented 7 years ago

Hi @wkallhof, thanks for response, and sorry about my delay to reply back. I'm using Hazel with local storage .md files. Would be nice if we could save it on a mongoDB or mysql for example.

Thanks again, hope see this feature in future versions. Congrats for this project, that's very nice and useful

rasapetter commented 7 years ago

This project looks super interesting! I'm also curious about alternative storage possibilities. Storing data in a database as @marcoshmendes suggests could be worth looking into. Would a StorageProvider wrapper around Knex.js, for example, be feasible?

Personally, I would love to be able to plug in git as a storage backend. That would keep data open for viewing/editing using other tools, plus you'd get versioning for free.

therebelrobot commented 7 years ago

I'm looking at possibly using this in a distributed knowledge base system for brigadehub, and having the ability to configure a database would make it a no-brainer for integration (still may do it with fs option)

tl;dr: +1 on mongo db configurations.