From d0289bc2c8011433b3ce5e7e05d6a10d652188ae Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Tue, 28 Jun 2022 21:05:50 +0000 Subject: [PATCH 1/2] fix getting started guide for web --- app/views/docs/getting-started-for-web.phtml | 52 ++++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/app/views/docs/getting-started-for-web.phtml b/app/views/docs/getting-started-for-web.phtml index abc774884..e90e44618 100644 --- a/app/views/docs/getting-started-for-web.phtml +++ b/app/views/docs/getting-started-for-web.phtml @@ -62,15 +62,13 @@ $demos = $platform['demos'] ?? [];

Initialize your SDK code with your project ID which can be found in your project settings page.

-
// Init your Web SDK
-const appwrite = new Appwrite();
+    
const client = new Client();
 
-appwrite
-    .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
-    .setProject('455x34dfkj') // Your project ID
-;
-
-
+// Init your Web SDK +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +;