Yes correct,
I want to test it from postman
Without deploy to server
And debug locally
Honestly, I usually just push my Function to Appwrite and run, then fix and push again, etc. Pushing Functions to Appwrite is so simple and fast that I don’t really see the point in attempting to run outside Appwrite, where you won’t be in exactly the same environment you’ll be in in production.
If you do really want to run the Functions locally, I can explain how to - what runtime?
I think you are not able to test it via postman without deploying at least not that easy, yet you can basically remove context from your function and run it like normal script and add your own debug logs instead of context logs.
It is possible, just probably unnecessarily complicated
@ropi95 It's pretty easy, you can run any runtime server and export your functionality.
Then you can test your function through postman.
Sorry, could you please explain what you mean by this?
It's the middle of the night right now, tomorrow morning I'll do an approximate project and show you.
Just wondering what you mean by “run a runtime server”
And “export your functionality”
@ideclon @ropi95 @Runpace it may be useful to you https://github.com/ekamalov/bun-debug.git
you can debug your code, use breakpoints.
open via vscode, run code
don't forget to add header
x-open-runtimes-secret
this fully meets the requirements of the runtime
but I'm seeing some problems with the BUN, you can use other runtimes.
we discuss the problem here https://discord.com/channels/564160730845151244/1191788381999468685
breakpoint
I don’t see where you’re exposing a web server here?
sorry check now, i added server
You got that from here, right?
But while this would be ok for basic debugging, you’re still not in the same environment you’ll be in when you ultimately deploy to Appwrite. If you’re going to do this locally, I’d say it would be better to spin up the correct open-runtimes
container, and build exactly like Appwrite would.
Recommended threads
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- Custom Domains
Hi All, Should be a quick config issue. I'm setting up custom domains on the hosted version. I have verified the domain with the CNAME but appwrite isn't gene...