
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.

I'm encountering the same challenge. Especially when I attempt to setup a test environment I find the need to create an admin user, organisation, project and an api key to use with the server sdk. This is not possible when creating and tearing down the testing environment. Because I do not have the capability of interacting with the newly created system through code. I've managed to local instance for the test environment however, I cannot proceed from here. I cannot find ways to create and organisation and initialise the project for automated setup and cleanup of the test environment. @D5 and @Appwrite team could shed some light on this?
Recommended threads
- Invalid credentials after migration
Hi everyone! After migrating our self-hosted Appwrite 1.3.1 to another server (staging, so a different domain), we are now getting 'Invalid credentials' when ...
- implement caching
It it possible to cache response for few minutes? I dont want to create function or implement a whole reverse server just to cache it in somewhere ?
- Invalid redirect url
I keep getting invalid redirect url in Nextjs when i try to use google or github authentication
