Created
January 24, 2022 11:27
-
-
Save Shigetorum635/2b250bda9a355b9fd534f06ccf967928 to your computer and use it in GitHub Desktop.
Simple code to host a gunJS peer for persistency within decentralized databases.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gunLib = require("gun") | |
const server = require('http').createServer().listen(8080); | |
const gun = gunLib({ | |
web: server | |
}); | |
console.log('GunJS Peer created.') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment