Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML only out-of-box working example #487

Closed
Fastidious opened this issue Nov 22, 2015 · 15 comments
Closed

HTML only out-of-box working example #487

Fastidious opened this issue Nov 22, 2015 · 15 comments

Comments

@Fastidious
Copy link

@Fastidious Fastidious commented Nov 22, 2015

Would it be possible to have an out-of-box working example, using only HTML (no Node), along the way of instant.io, or similar (if it is not possible to have it exactly like it)?

@blairanderson

This comment has been minimized.

Copy link

@blairanderson blairanderson commented Nov 23, 2015

@Fastidious

This comment has been minimized.

Copy link
Author

@Fastidious Fastidious commented Nov 23, 2015

@blairanderson correct me if I am wrong, doesn't instant.io use Node?

@raphaelparent

This comment has been minimized.

Copy link

@raphaelparent raphaelparent commented Nov 23, 2015

@Fastidious You're right, it does run on Node.

BUT, if you look in the code, everything that is WebTorrent related is on the client side

@Fastidious

This comment has been minimized.

Copy link
Author

@Fastidious Fastidious commented Nov 23, 2015

if you look in the code, everything that is WebTorrent related is on the client side

@raphaelparent that is the thing, I am not a programmer. Yet, I would love to have a full working example (which could be use on a daily bases, like instant.io) of webtorrent using only HTML5 and JS, no Node, or any extras, say to upload a file, serve it via torrent, and allow the download of it (all browser to browser).

@raphaelparent

This comment has been minimized.

Copy link

@raphaelparent raphaelparent commented Nov 23, 2015

Ok I get your point now, someone should convert the Jade view to html and make it work with the .js file.

If you know HTML and work you way around the Jade file you should be able to recreate the HTML part and you can use the file /client/index.js as the script.

Otherwise someone who knows is way around Jade and HTML should be able to do it pretty easily.

@elad

This comment has been minimized.

Copy link

@elad elad commented Nov 30, 2015

There are working browser-only examples, browser-seed.js and browser-download.js.

@Fastidious

This comment has been minimized.

Copy link
Author

@Fastidious Fastidious commented Nov 30, 2015

@elad could you put it all together in a simple HTML page (index.html plus JS)? Something that allows someone to make a file available (upload) and shareable (download), both in a single page?

@elad

This comment has been minimized.

Copy link

@elad elad commented Nov 30, 2015

If https://file.pizza/ doesn't do what you want, you'll have to figure this one out yourself I'm afraid...

@Fastidious

This comment has been minimized.

Copy link
Author

@Fastidious Fastidious commented Nov 30, 2015

@elad sigh... https://file.pizza/ uses Node. It is not the same. Thanks for trying though, appreciated.

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Dec 3, 2015

Have you checked out my client? https://github.com/DiegoRBaquero/BTorrent

It's Jade, CoffeeScript and Sass (HTML, Javascript and CSS). Three simple files.

The compiled version is https://btorrent.xyz, thought the files are minified and rendered (angular).

If you'd liked HTML, JS and CSS (in case you really don't understand Jade/CoffeeScript/CSS) I can compile a non-minified versions.

Cheers

@Fastidious

This comment has been minimized.

Copy link
Author

@Fastidious Fastidious commented Dec 3, 2015

@DiegoRBaquero that is most excellent, thanks! I have played with it, and already have three issues opened for you. :-) Closing this one here, as you provided what I asked for.

@Fastidious Fastidious closed this Dec 3, 2015
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Dec 25, 2015

Let's add some complete HTML examples to the examples/ folder, because I keep getting this request from people.

"On github you provide JS examples, but I couldn't find any HTML examples, that is required."

@feross feross reopened this Dec 25, 2015
@professorhaseeb

This comment has been minimized.

Copy link

@professorhaseeb professorhaseeb commented Dec 25, 2015

agreed.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Dec 27, 2015

Here's a PR that adds the example: #538

@feross feross closed this in ce62427 Dec 27, 2015
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 5, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.