Open rohankm opened 2 years ago
Love this, I was just running into this myself! I like creating projectId same as projectName most of the time.
My expecation of running appwrite deploy collection
would offer to create project, then offer to create db as well.
{
"projectId": "dubstep-stack",
"projectName": "dubstep-stack",
"collections": [
{
"$id": "notes",
"$createdAt": "2022-10-14T11:24:26.880+00:00",
"$updatedAt": "2022-10-14T11:24:39.876+00:00",
"$permissions": [],
"databaseId": "dubstep-stack-db",
"name": "notes",
"enabled": true,
"documentSecurity": true,
"attributes": [
{
"key": "title",
"type": "string",
"status": "available",
"required": true,
"array": false,
"size": 255,
"default": null
},
{
"key": "body",
"type": "string",
"status": "available",
"required": false,
"array": false,
"size": 65535,
"default": null
},
{
"key": "profile_id",
"type": "string",
"status": "available",
"required": true,
"array": false,
"size": 16,
"default": null
}
],
"indexes": []
}
]
}
Adding more user/developer-friendly functions like cloning would be helpful
The current approach for cloning a project is is
which a beginner developer might feel overhead..
what I suggest is a simple clone feature which can clone projects, databases and collections... This can be implemented as
appwrite clone --projectId myProject --cloneProjectId myProjectClone --cloneProjectName MyprojectClone