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

Oh my dear god why don't we just wrap it in electron #413

Closed
suny-yangke opened this issue Dec 9, 2019 · 17 comments
Closed

Oh my dear god why don't we just wrap it in electron #413

suny-yangke opened this issue Dec 9, 2019 · 17 comments

Comments

@suny-yangke
Copy link

https://electronjs.org/

@liyasthomas
Copy link
Member

No need.

@NBTX
Copy link
Contributor

NBTX commented Dec 9, 2019

image
@suny-yangke

@TheSalarKhan
Copy link

TheSalarKhan commented Mar 31, 2021

I think there should be an optional build script for people who want to use this in electron. I'm interested in hoppscotch not because its a web app, but because its open source. <3

There are a few problems with running it in the browser because we can't make calls to localhost for example. And for api-servers that don't set cors headers it also is not usable.

I have used electron to build a personal application for my use, I can raise a PR to add an electron build for hoppscotch.

Thank you sooo much for the lovely product.

@liyasthomas

@liyasthomas
Copy link
Member

liyasthomas commented Mar 31, 2021

we can't make calls to localhost for example.

Yes you can. Install our official browser extension to access localhost endpoints. Links are in readme.

api-servers that don't set cors headers it also is not usable.

Turn on proxy mode from settings.

Let me know if there's any other issues.

@TheSalarKhan
Copy link

Hey @liyasthomas thanks a ton. I really did not know about the extension. Also if I install the browser extension and turn on the proxy will I be able to interface with IPs in my local network or is the localhost the only possible endpoint?

@liyasthomas
Copy link
Member

Proxy and extension can't work at once. To access local server = use browser extension. To access CORS restricted endpoints = turn on proxy mode. Proxy mode will mask your IP with that of the Proxy. Browser extension triggers the request from local server.

@TheSalarKhan
Copy link

Okay. Well in my usecase I have to interact with multiple services that are in development, usually they are on my localhost but sometimes they are on endpoints that are not publically accessible so can't use a proxy for that case. And turning off cors on them before accessing

So there are use cases where running in the browser doesn't cut the mustard. But I'm really happy with this tool, and I'm using it inside an electron build and it works flawlessly without a proxy or an extension.

Cheers!

@KaKi87
Copy link

KaKi87 commented Jul 21, 2021

How about Tauri ? 😊

@chimit
Copy link

chimit commented Aug 26, 2021

@liyasthomas there is no extension for Safari. Electron build would make everything much easier. I've heard a belief from a couple of devs that Postwoman/Hoppscotch is not usable because it can't access localhost.

@liyasthomas
Copy link
Member

A native build is in our roadmap. Watch this space for updates. Thanks for your patience.

@im-n1
Copy link

im-n1 commented Dec 11, 2021

Electron is a bloat. Huge bloat. Don't send another great project into that hole. If you want desktop app learn and use appropriate language/tools.

@KaKi87
Copy link

KaKi87 commented Dec 11, 2021

If you want desktop app learn and use appropriate language/tools

Or, use Tauri

@im-n1
Copy link

im-n1 commented Dec 12, 2021

Or, use Tauri

No. Less overhead but still the same 💩

@KaKi87
Copy link

KaKi87 commented Dec 12, 2021

Tauri apps are very lightweight and much less resource-consuming than Electron apps.

@AndrewBastin
Copy link
Member

I am working on a native app, just that it is not a big priority compared to the other features we want to work on and along with extension and PWA, most of the things a native app can do is basically possible.

The native app project worked on internally is based on a subset of Tauri using only parts of it we intend to use.

@liudonghua123
Copy link

Hi, I have tried to build Windows/Linux/macOS desktop apps using Tauri. You can try it on https://github.com/liudonghua123/hoppscotch-app/releases. Looking forward to any bug reports, feature requests. 😃

@DanBurkhardt
Copy link

super super curious why this isn't officially released for macOS as an electron app. You could even ship on the App Store, kind of perplexing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants