Skip to content
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

Merged
merged 6 commits into from
Sep 25, 2023
Merged

Add Server SDK Quickstarts #26

merged 6 commits into from
Sep 25, 2023

Conversation

adityaoberai
Copy link
Member

@adityaoberai adityaoberai commented Sep 20, 2023

Adds the following server SDK quickstarts to the docs

  • Node.js
  • Dart

@vercel
Copy link

vercel bot commented Sep 20, 2023

@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.

@adityaoberai
Copy link
Member Author

@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

Base automatically changed from feat-docs-g2 to main September 21, 2023 09:24
Copy link
Contributor

@gewenyu99 gewenyu99 left a 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.

@adityaoberai
Copy link
Member Author

adityaoberai commented Sep 22, 2023

@gewenyu99 I've updated the example. Check it out once?

Copy link
Contributor

@gewenyu99 gewenyu99 left a 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');
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here!

@adityaoberai adityaoberai changed the title Add Node.js quickstart Add Server SDK Quickstarts Sep 25, 2023
@adityaoberai
Copy link
Member Author

@gewenyu99 I've made the changes and added a Dart quickstart too

@vercel
Copy link

vercel bot commented Sep 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2023 3:42pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants