-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Local Desktop Gun Relay (Windows, Linux, MAC)
https://github.com/worldpeaceenginelabs/gun-relay-desktop
- npm install
- add your peers in server.js
- npm exec electron-packager . (the dot means "in the actual folder", without further arguments electron-packager compiles for the actual OS you are using to compile)
You can use it to collect data 24/7 with your desktop relay from a subscribe form, or customer/user chat, or whichever datasource, which is on your static website on a CDN.
Without the need for any DynDNS service or centralized back-ends! Without the need to stay 24/7 online with your desktop!
!!!Heroku becomes unnecessary or fallback if you use Decentralized-STUN-Service. But this concept is for showing how to decentralize your back-end with gun for something simple like <input>
!!!
Run your own IP Lookup server (or multiple) if you like https://github.com/mpolden/echoip
A simple service for looking up your IP address. This is the code that powers https://ifconfig.co/
Gun + Public IP Version
Gun + Public IP + Decentralized File Version
Peer-CDN https://rafallorenz.com/peer-cdn/docs/installation.html
Serve your website/apps build files from your gun nodes and peers.
The source-code of your website/app in this example comes from the desktop relay, but can come from anywhere you like.
A Gun based email server on your desktop. by by classic email provider! (take a look on Cloudflare Email Routing https://developers.cloudflare.com/email-routing/ to improve further)
Make your desktop gun server available from the outside (centralized way, for fallback or scaling eventually)
https://www.noip.com/integrate/request (free user account neccessary)
feel free to add more use cases...