-
Notifications
You must be signed in to change notification settings - Fork 296
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you :) let some comments
"browser": true, | ||
"esnext": true, | ||
"newcap": false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need jshint and eslint?
@@ -0,0 +1,42 @@ | |||
{ | |||
"name": "react-hot-boilerplate", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets rename this properly
{ | ||
"name": "react-hot-boilerplate", | ||
"version": "1.0.0", | ||
"description": "Boilerplate for ReactJS project with hot code reloading", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can update this as well
"edit", | ||
"webpack" | ||
], | ||
"author": "Dan Abramov <[email protected]> (http://github.com/gaearon)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think Dan wrote this ;)
import ipfsAPI from 'ipfs-api' | ||
|
||
var ipfs = ipfsAPI('localhost', '5001') | ||
const stringToUse = 'Hello World From Webpack' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets make it hello world from wepbacked IPFS
}) | ||
ipfs.dht.findprovs(hash, (err, res) => { | ||
if (err) throw err | ||
console.log('found provs!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not write this to the dom like the others do?
@dignifiedquire thanks for the review. The example comes from a quick setup I did, coming from Dan's react hot boilerplate. I'll address the things you've mentioned, and also remove the findprovs part (since it's out of scope of the example). Thanks! |
Sweeeet! :D Can we call the folder Also, can you add a README just explaining what people are doing with all of this pieces? Or even just say? "Copy this to your workspace and you get it working by running X Y Z commands" |
@diasdavid you got it! 👍 |
awesome. Also update the readme section https://github.com/ipfs/js-ipfs-api#in-a-web-browser-through-browserify to point to both examples :) |
90fe45b
to
397c816
Compare
Thanks for the feedback, everything have been addressed now! @diasdavid @dignifiedquire please take a look again and merge if 👍 |
0a729c2
to
2cea58b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did linting pass?
Overall LGTM
2cea58b
to
dc30de9
Compare
@diasdavid linting should pass now, yes. |
Comes from https://github.com/VictorBjelkholm/webpack-node-ipfs-api-demo which I'll deprecate if we decide to merge this.