DEV Community

bkid00
bkid00

Posted on

6 5

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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free