-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Server SDK Quickstarts #26
Conversation
@adityaoberai is attempting to deploy a commit to the appwrite Team on Vercel. To accomplish this, @adityaoberai needs to request access to the Team. Afterwards, an owner of the Team is required to accept their membership request. If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account. |
@gewenyu99 if this is good to go, I'll use the same example to create other server SDK quickstart Also, we need a graphic for Create API Key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adityaoberai I like where this is going.
Why don't we do a quick example like they have in supabase where we create a database, a collection, add like 3 - 4 items instead of locale.
I feel like it might be more fun, more illustrative.
@gewenyu99 I've updated the example. Check it out once? |
378d832
to
9c87ce4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just cosmetic changes, feel free to make and move forward then I'll merge.
var todoCollection; | ||
|
||
async function prepareDatabase() { | ||
todoDatabase = await databases.create(sdk.ID.unique(), 'TodosDB'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's break lines here so the lines aren't so long
Like
await databases.createStringAttribute(
todoDatabase.$id,
todoCollection.$id,
'title',
255,
true
);
isComplete: false | ||
}; | ||
|
||
await databases.createDocument(todoDatabase.$id, todoCollection.$id, sdk.ID.unique(), testTodo1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, line breaks
|
||
await databases.createDocument(todoDatabase.$id, todoCollection.$id, sdk.ID.unique(), testTodo1); | ||
await databases.createDocument(todoDatabase.$id, todoCollection.$id, sdk.ID.unique(), testTodo2); | ||
await databases.createDocument(todoDatabase.$id, todoCollection.$id, sdk.ID.unique(), testTodo3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here!
@gewenyu99 I've made the changes and added a Dart quickstart too |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Adds the following server SDK quickstarts to the docs