Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appwrite: getting started #30

Open
bangank36 opened this issue Sep 28, 2023 · 0 comments
Open

Appwrite: getting started #30

bangank36 opened this issue Sep 28, 2023 · 0 comments

Comments

@bangank36
Copy link
Owner

bangank36 commented Sep 28, 2023

Summary

  • Getting started with Appwrite functions to compare the features with Firebase, if things go well, we can replace Firebase Functions with Appwrite

  • Install Appwrite CLI

  • Try the function template , fork the node/starter example

    • Which CLI command to run for local developing?
    • Getting tucked at appwrite login, since appwrite has cloud version, the server step should be https://cloud.appwrite.io/v1 instead of http://localhost/v1
    • If account is linked to github, we should create new password by visit /account and put same password to old and new inputs
  • Local development support

    • #5425

    • Real example

    • Steps:

      1. Rewrite example main.js to common js syntax
      2. Pass new methods log and error to mock server to comply with new syntax of Context
  • Init project

    • appwrite init project
    • appwrite init function: this will create a functions folder with /src inside, I guess we may need to copy the source from template to this
  • Deploy function

    • appwrite deploy function: not found on cloud console, had to connect to git repo manually
  • Appwrite v Firebase

    • The context in Appwrite function is an Object, while in Firebase it is separate param
    • Appwrite context will have an error() method, therefore should avoid using the error as error value in catch()

Reference

N/A

@bangank36 bangank36 converted this from a draft issue Sep 28, 2023
@bangank36 bangank36 moved this to In Progress in Personal Development Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant