W
Wasp-lang11mo ago
heyooo

trouble setting up wasp-ai

Hey, there. I've built a few node apps before but I'm a little out of my depth with this. I have the MAGE app running, and it's not throwing errors on the console, but I'm not able to authenticate myself in to generate anything. I'm probably missing something really obvious, but I'd like to start with asking if there's any list of variables I need to put into the .env.server and .env.web-app files in my root folder? Is there a problem with the github and google auths? My google auth doesn't show up at all and github just goes to a blank page sans the header and footer. Maybe there's a setup specifically or the wasp-ai app itself that I'm not seeing, or something? This whole project is amazing and I love the concept, but I'm pretty banged up from trying to get it going on my own, so I'm throwing myself to you nice folks on Discord:) Thanks for all the fun so far!
2 Replies
martinsos
martinsos11mo ago
Hey @heyooo ! Sorry for not answering this one sooner, I somehow managed to miss this question, but here I am now! So you are running MAGE app locally? Ok, bold :D! Yeah you are right, you are going to need to set up some env vars. In the future we want to have Wasp let you know if env vars are missing but right now it is not very helpful yet. Here are docs for Github: https://wasp-lang.dev/docs/auth/social-auth/github . Here are docs for Google: https://wasp-lang.dev/docs/auth/social-auth/google . It will require you creating special "OAuth" apps up there, on each of them. And you will have to set up env vars. Have you considered running Mage via CLI? If you check last entry in the FAQ of usemage.ai, you can find instructions on how to do that. THat should be quite easier.
heyooo
heyooo11mo ago
Thank you. Yes, I have been running Mage in the CLI, and it runs fine. I'm more interested in the process bits, and how that's rolled out in a scenario like this than getting an AI to generate code I want personally. I have all my oauth app bits created already, and my env vars are passing to the app, but it's not going anywhere because that end isn't built out for distribution. That's okay. That was why I asked. No sense in reinventing the wheel, and the longer I wait, the better the software gets anyway. Thanks for the ping. I do appreciate the reply. :wasplang:
Want results from more Discord servers?
Add your server