Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 11, 2022 10:34 am GMT

Go App With AppWrite

Overview of My Submission

A simple Application with Go Language and AppWrite.

run the script

/bin/sh run.sh

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"  } }

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"  } }

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!!


Original Link: https://dev.to/bkid00/go-app-with-appwrite-4gff

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To