4 ms·
Ah, yes! Thank you for clarifying. (sorry for the late reply) This actually works out of the box, sorry if if this wasn't clear. When you run a gun server ( `n
by marknadal 10y ago
Ah, yes! Thank you for clarifying. (sorry for the late reply)
This actually works out of the box, sorry if if this wasn't clear. When you run a gun server ( `npm start` or see https://github.com/gundb/gun-starter-app https://github.com/gundb/gun-starter-app ), it by default saves persists data to disk.
This way the gun server acts as a storage node, ready to provide the data to clients. The default options are, and extensions for:
- Dump JSON to disk.
- Backup to S3.
- Level adapter https://github.com/PsychoLlama/gun-level https://github.com/PsychoLlama/gun-level
- SQLite adapter https://github.com/gundb/sqlite https://github.com/gundb/sqlite
Note, that the Level adapter is also compatible with many other storage engines.
Is this what you were looking for?