diff --git a/app/views/docs/getting-started-for-web.phtml b/app/views/docs/getting-started-for-web.phtml index abc774884..39efb30c4 100644 --- a/app/views/docs/getting-started-for-web.phtml +++ b/app/views/docs/getting-started-for-web.phtml @@ -46,7 +46,7 @@ $demos = $platform['demos'] ?? [];
When you're using a bundler (like Browserify or Webpack), import the Appwrite module when you need it:
import { Appwrite } from 'appwrite';
+ import { Client, Account } from 'appwrite';
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
+;