Try it now
var gun = Gun('https://gunjs.herokuapp.com/gun');
gun.get('example/tutorial').put({hello: "world"});
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 referenced an object and saved data to it. In two tabs, we'll load that reference and sync data between them.
https://gunjs.herokuapp.com/ x
https://gunjs.herokuapp.com/ x
ref.get('').put("");
Let's update the "hello" field with a different value. We can get any field on the object, and update it directly.