neogeofun
neogeofun
WWasp-lang
Created by Zuck on 9/6/2024 in #🙋questions
Creating DMG file with Electron?
@martinsos I am not expert but I am working with Electron (not Wasp project), Electron is mostly a thin wrapper. You could run your Wasp app, and tell Electron to load url without actually opening a browser window. That's why it would be easy, just run Wasp as usual on some port and have Electron load it. It is also relatively easy to reverse engineer Electron apps. Discord/Slack etc. keep all their business logic on their servers, and you certainly don't want to store anything sensitive inside an Electron app. That said, if you are just building an open source project I guess there'd be no reason to hack it. My assumption is that Wasp requires a server to run, and its core benefits depend on being a monolithic app (there is an argument for bundling Wasp client alone with the electron app, but I suspect it'd be harder than writing a separate client for Electron). Also assumed this isn't open source / fun project. My advice is given with the assumption someone is building something as a for profit product.
11 replies
WWasp-lang
Created by Zuck on 9/6/2024 in #🙋questions
Creating DMG file with Electron?
I don't know about DMG part but using Wasp to create an electron app should be rather straightforward and easy. That said, I see no reason why would you want an Electron app if all you are doing is running Wasp app on your local server. Assuming you put the whole Wasp app inside your Electron wrapper, you would still need to run it on some port to make your backend functional. Why not just use it how it is supposed to be used, and if you really need an Electron app have the Electron client call your server, it is honestly not a good idea to put all your business logic inside an Electron app anyway.
11 replies
WWasp-lang
Created by neogeofun on 8/30/2024 in #🙋questions
Error Report from Stripe.ts and Relevant Questions
@Vinny (@Wasp) I just added some other events in the if/else section of webhook listener. Inside those blocks, I am just updating records to save the payment details in my database. It is for one-time payments so events are "payment_intent.created", "charge.succeeded" etc. but the only one with I do anything other than console.log right now is charge.succeeded. Stripe sends multiple events so the webhook is active more than once so it may be the issue. Will the default webhook only gets 1 event from Stripe? Regardless, I am not sending responses from within those event listener conditional blocks, they merely do a database update. If the events are printed in correct order, this is happening after receiving "payment_intent.created" but it is also printed after charge.succeeded event not sure if Stripe would send intent created after charge.succeeded. However, I don't think this is related to order of events in any case because I am not writing a new response from those blocks, only response is the existing ones:
response.json({ received: true });
response.json({ received: true });
and the one of errors after that. One thing I noticed is that, in printing events, there is a field called "pending_webhooks" and it is 2 in all events I received, if it is relevant at all.
9 replies
WWasp-lang
Created by Conspyre on 9/2/2024 in #🙋questions
Dependency hell
What is the package you are trying to install?
15 replies
WWasp-lang
Created by Conspyre on 9/2/2024 in #🙋questions
Dependency hell
Why can't you install an older version of the package?
15 replies
WWasp-lang
Created by neogeofun on 8/30/2024 in #🙋questions
Updating to Prisma v5
@martinsos thanks. đź‘Ť
7 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
you gave Gmail as an example, but whatever good luck
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
lol ok
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
try to find an existing solution, even with that, it is not going to be easy to do it right
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
i wouldn't try to implement it from the scratch
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
Without a naive solution, that's a lot of work, good luck
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
you check both columns in database
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
keep everything else the same, during sign on I can use either my company email or personal email, but i use the same password
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
add companyEmail field on user or userProfile table
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
it is not so straightforward but a naive solution would be implementing a table that allows you to store the other email of the user and then do a cross check during sign on
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
now i have another email that i want to use to login to the exact same account?
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
i register with my gmail account using your app
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #🙋questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
ok walk me through
66 replies