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
- Not able to upgrade to Appwrite Pro
This is my project ID - 69f5bee60036512d2d52 I've tried multiple credit cards now and I still face the same error "Your card was declined". But I've used the s...
- Storage System
Hey guys, quick question regarding massive storage scaling. I’m working in digital forensics and I’m constantly dealing with huge binary disk images, usually be...
- API key without database.read/write
I had some issues with my previous API key and I deleted it then I wanted to create a new one and discovered the database checkbook has no database.read/write j...