I have created a project during last hackathon of appwrite. It was Formvibe which helps user create forms with ease.
I have made it open source. Problem is in the initial setup of the project. I have some collections in database and one bucket in storage which i want to automate somehow, so that if any user try to setup my project from github, appwrite part will be automated somehow and he doesn't need to create those collections and bucket
Any ideas on this ?
I don't think there'll be a complete automation. The minimum setup required would be to at-least generate an
- Endpoint,
- The Project Id,
- The API Key with correct permissions.
With these, you can create a form, take these inputs & create the initial collections, databases. This would only make sense if there are quite many dbs or collections. Else creating a DB & a Collection isn't that much.
I am not sure but there is the console sdk
that may help you but I dont know how powerful it is
Console SDK isn't for public use, afaik.
I guess you are right. I will have to create a script that will use node-appwrite sdk maybe and that will take api key to do all these automation like creating database, collections, indexes and storage bucket and all those resources which i require initially
What do you mean by automating collections, indexes and buckets? You mean creating new one automatically? For what do you need this?
You can with node SDK as you said
I have this project which is using Appwrite in backend . Now if anyone wants to setup my project locally he would have to create collections attributes and indexes manually in console
That part I want to automate
It will be one time only
Initially required before running the project
You can create what you mentioned with any of the existing server side SDK
Sure got it.
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...