#What is the suggested development pattern when working with AppWrite?

4 messages · Page 1 of 1 (latest)

still cypress
#

I want to have a fully local available setup,
which means, all features including functions are available locally, I am encountering many problems when trying to doing this.

I wonder is it possible with Appwrite or i might miss the Appwrite way of doing local dev.

The current document does not really work since it does not explain how to do everything locally, for example, pushing functions leads to runtime not supported error.

https://appwrite.io/docs/products/functions/develop-locally

Learn to develop Appwrite functions locally.

deft spire
#

cc @trim drift did you want to take a look at this?

trim drift
#

Hi @still cypress Yes, you can run functions locally. Can you share the command you're running and error message? This will help us figure out the issue 🙏

still cypress
#

Thanks both. I was able to get everything up and running in the end 🙂
so far, I have encountered problems like,

  1. not supported runtime
  2. function docker can not connect to appwrite docker
  3. some permission problem.
  4. doc says create teams has a default role of owner, but i do not see any membership of the owner being created
  5. stop rate limit for local dev
  6. error Failed to connect to exc1 port 80 after 0 ms: Could not connect to server with status code 0 when pushing to local docker
  7. error: No permissions provided for action 'execute' when executing function locally.
  8. the appwrite client --endpoint A --project-id B --key C not updating the appwrite.json, and I have to manually update it.
  9. Do not know how to switch between local appwrite instance and cloud appwrite instance.

the answers are either through the internet QA or somewhere in the doc from a different section. and for 8 and 9, still do not know the answers. 😃 what would be super helpful is someone from the team start from 0 to setup the flow and write a blog that is actually works. since the current local dev doc is defnitely missing a lot of pieces. This investigation step would be crucial for adoption rate. i suggest to make it as smooth as the supabase one. 😃

Nice product BTW. but the learning curve is real. mainly due to the fact that the bootstrap takes quite a while to do.