Try it now
var gun = Gun('https://gunjs.herokuapp.com/gun');
gun.put({hello: "world"}).key('example/tutorial');
In this 1 minute tutorial, we will connect to a gun peer, create an object, and sync data in realtime.
var ref = gun.get('example/tutorial');
ref.on(function(data){
  $('body').text(JSON.stringify(data));
});
Congratulations! You just made an object and saved a reference to it. In two tabs, we'll load that key to open a shared reference.
https://gunjs.herokuapp.com/ x
https://gunjs.herokuapp.com/ x
ref.path('').put("");
Let's update the "hello" field with a different value. We can path into any field, and update it directly.