Skip to content

Instantly share code, notes, and snippets.

@Shigetorum635
Created January 24, 2022 11:27
Show Gist options
  • Save Shigetorum635/2b250bda9a355b9fd534f06ccf967928 to your computer and use it in GitHub Desktop.
Save Shigetorum635/2b250bda9a355b9fd534f06ccf967928 to your computer and use it in GitHub Desktop.
Simple code to host a gunJS peer for persistency within decentralized databases.
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