readme working?

This commit is contained in:
amark 2014-09-10 22:15:29 -07:00
parent b997ca4c04
commit ebda5a6cdc

View File

@ -13,7 +13,7 @@ Then require it in your app.
Then initialize a gun instance with your AWS S3 credentials. Then initialize a gun instance with your AWS S3 credentials.
``` ```JavaScript
var gun = Gun({ var gun = Gun({
s3: { s3: {
key: '', // AWS Access Key key: '', // AWS Access Key
@ -32,7 +32,7 @@ Save your first object, and create a reference to it.
Now, altogether, with the node hello world web server that replies with your data. Now, altogether, with the node hello world web server that replies with your data.
``` ```JavaScript
var Gun = require('gun'); var Gun = require('gun');
var gun = Gun({ var gun = Gun({
s3: { s3: {
@ -51,3 +51,5 @@ http.createServer(function (req, res) {
}).listen(1337, '127.0.0.1'); }).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/'); console.log('Server running at http://127.0.0.1:1337/');
``` ```
Now fire up your browser and hit that URL - you'll see your data, plus some gun specific metadata.