ItzNotABug / appexpress

An express.js like framework for Appwrite Functions, enabling super-easy navigation!
Apache License 2.0
39 stars 4 forks source link

Run Function locally. #23

Closed dimasanwaraziz closed 3 months ago

dimasanwaraziz commented 4 months ago

How can I run this function locally without push to Appwrite first.

ItzNotABug commented 4 months ago

Hey @dimasanwaraziz 👋,

  1. If you have a self hosted appwrite instance on your machine then you could push the function there.
  2. If you intend to test the project locally, I do that for tests by creating a pseudo context. Take a look here and here.

Ofc to have a full fledged drop in support to test this without Appwrite, you'd need to extend the headers for the context, which can be seen here.

dimasanwaraziz commented 4 months ago

Okay, thank's for your response, I'll discover this first.

ItzNotABug commented 3 months ago

@dimasanwaraziz Can this be closed?

dimasanwaraziz commented 3 months ago

Yes you can close this case, thanks.