Go App With AppWrite⛳

bkid00

bkid00

Posted on May 11, 2022

Go App With AppWrite⛳

Overview of My Submission

A simple Application with Go Language and AppWrite.🐋

run the script

/bin/sh run.sh
Enter fullscreen mode Exit fullscreen mode

To Modify

You need to to modify env vars set in run.sh using your own

  • BASEPATH
  • PORT
  • PROJECT_ID
  • TOKEN

How it works ?

It project use the appwrite provided apis. Fow now, only database endpoint are implement in this project.

  • Procedures
  • Create new collection
  • List all avaiable collections
  • Create a new document using the id of inserted collection

Is required to set payload for create collection in the format below

{
  "data": {
    "key": "value3"
  } 
}
Enter fullscreen mode Exit fullscreen mode

The data key is mandatory. key is the registered key in Collection.CollectionCreateInputRule.
If you modify the value of key, modify it in the create collection payload too.

inputRule := Collection.CollectionCreateInputRule{
  Label:    "label",
  Key:      "myKey",
  Type:     "text",
  Default:  "no set",
  Required: false,
    Array:    false,
}

{
  "data": {
    "myKey": "value4"
  } 
}
Enter fullscreen mode Exit fullscreen mode

Submission Category:

Wacky Wildcards

Link to Code

GitHub logo bkid00 / GoLangApp-Appwrite

Go Lang Application with Appwrite for Dev +Appwrite Hackathon

GoLangApp-Appwrite

Go Lang Application with Appwrite for Dev +Appwrite Hackathon

See you guys!!🤗

💖 💪 🙅 🚩
bkid00
bkid00

Posted on May 11, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related