An Interest In:
Web News this Week
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
May 11, 2022 10:34 am GMT
Original Link: https://dev.to/bkid00/go-app-with-appwrite-4gff
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
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To