Settings

Theme

Using JSON files instead of a database

github.com

4 points by Sujeto 2 years ago · 2 comments

Reader

accrual 2 years ago

I like this idea. I've also written a couple of chat apps over the years and converged on a JSON flat-file for storing data as well. I believe I used node-json-db [0] as a wrapper on top of the file, though it's pretty cool this author seems to have written their own from scratch. I think this is an excellent solution for projects like these.

https://www.npmjs.com/package/node-json-db

senttoschool 2 years ago

It's not better. It's just different.

I think SQLite would have been a more practical choice.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection