Go App With AppWrite⛳ – DEV Community



Overview of My Submission

A easy Utility with Go Language and AppWrite.🐋

run the script

/bin/sh run.sh
Enter fullscreen mode

Exit fullscreen mode

To Modify

You must to switch env vars set in run.sh utilizing your individual

  • BASEPATH
  • PORT
  • PROJECT_ID
  • TOKEN

The way it works ?

It undertaking use the appwrite offered apis. Fow now, solely database endpoint are implement on this undertaking.

  • Procedures
  • Create new assortment
  • Listing all avaiable collections
  • Create a brand new doc utilizing the id of inserted assortment

Is required to set payload for create assortment within the format beneath

{
  "information": {
    "key": "value3"
  } 
}
Enter fullscreen mode

Exit fullscreen mode

The info key’s obligatory. key’s the registered key in Assortment.CollectionCreateInputRule.
Should you modify the worth of key, modify it within the create assortment payload too.

inputRule := Assortment.CollectionCreateInputRule{
  Label:    "label",
  Key:      "myKey",
  Sort:     "textual content",
  Default:  "no set",
  Required: false,
    Array:    false,
}

{
  "information": {
    "myKey": "value4"
  } 
}
Enter fullscreen mode

Exit fullscreen mode



Submission Class:

Wacky Wildcards



Hyperlink to Code

Go Lang Utility with Appwrite for Dev +Appwrite Hackathon

Go Lang Utility with Appwrite for Dev +Appwrite Hackathon

See you guys!!🤗

Add a Comment

Your email address will not be published. Required fields are marked *