W
Wasp•3w ago
Ivan

Can I use this repo https://github.com/WeferralHq/weferral-api with the starter kit

Is it possible to use this github repo RESTFUL API built for Weferral and expand my SaaS
5 Replies
MEE6
MEE6•3w ago
Wohooo @Ivan, you just became a Waspeteer level 3!
kapa.ai
kapa.ai•3w ago
Hi @Ivan. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I apologize, but I don't have enough information in the provided knowledge sources to directly answer your question about using the specific GitHub repository (https://github.com/WeferralHq/weferral-api) with Wasp's starter kit or expanding your SaaS with it. However, I can provide some general information about using external APIs with Wasp: Wasp allows you to integrate external APIs into your application. You can make API calls from your Wasp server (in queries or actions) to external services. This is mentioned in the context of using custom API endpoints: Using the API externally If you want to use an external API in your Wasp application, you would typically: 1. Set up the API call in your server-side code (in a query or action). 2. Make the call to your Wasp backend from the client-side, which then communicates with the external API. For example, you could use the Axios wrapper provided by Wasp to make API calls from your client: Using the API from the Client To determine if the specific API you mentioned is compatible and how to integrate it, you would need to review its documentation and compare it with Wasp's capabilities. If you need more specific guidance, I recommend asking in the Wasp community forums or consulting the Wasp documentation for detailed integration steps. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Ivan, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Ivan
IvanOP•3w ago
Is there any update?
genyus
genyus•3w ago
@Ivan I'm not a member of the core team, but just a few observations: 1. If you want to continue your conversation with the bot, you have to "@" it in your replies, i.e. "@kapa.ai" 2. The repo you're asking about is very outdated and hasn't been updated for 4 years, so I expect it would require some effort to get it working with current runtimes and dependencies. 3. I'm no Wasp expert, but it doesn't appear that this repo could be easily integrated into a Wasp project. While it shares Node and Postgres in common with Wasp, it accesses the database directly (which Wasp doesn't support, AFAIK) and has a whole different architecture. 4. As the bot suggested above, if you want to integrate an API like this, I think you'd have to deploy it separately and then define custom operations in your Wasp app to call into it
Filip
Filip•3w ago
Hey @Ivan, thanks for the patience, the team was on vacation 🙂 Everything what @genyus said is spot on! @genyus Thanks a ton for jumping in @genyus! Pleasure to have community memebers such as yourself

Did you find this page helpful?