From 9e62f5991fb125f682c28ec09f7bbe6c9bfb71bf Mon Sep 17 00:00:00 2001 From: Victor Maia Date: Thu, 27 Apr 2017 11:47:42 -0300 Subject: [PATCH] More examples --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 85f871d..c4b958c 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,10 @@ swarm.upload({ swarm.upload({pick: "file"}) // could also be "directory" or "data" ``` +#### Uploading a PDF + +- [Uploading a PDF in various ways (gist).](https://gist.github.com/MaiaVictor/ae0439de5ca752604675ffa4535e47b4) + ## Uploading an Ethereum DApp When it comes to decentralized applications (DApps), the Ethereum network is responsible for the back-end logic, while Swarm is responsible for hosting and serving the front-end code. Hosting a DApp on Swarm is as simple as creating a directory with some HTMLs and a default route (the "index.html"). This, too, can be done with Swarm.js either [from disk](https://github.com/MaiaVictor/swarm-js/blob/master/examples/dapp_upload_from_disk.js), or with [pure JavaScript](https://github.com/MaiaVictor/swarm-js/blob/master/examples/dapp_upload.js). Here is a sneak peek: