You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This SDK is compatible with Appwrite server version 1.4.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-web/releases).**
9
+
**This SDK is compatible with Appwrite server version 1.4.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-react-native/releases).**
10
10
11
11
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Web SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
If you're using a bundler (like [Rollup](https://rollupjs.org/) or [webpack](https://webpack.js.org/)), you can import the Appwrite module when you need it:
26
-
27
-
```js
28
-
import { Client, Account } from"appwrite";
20
+
npm install react-native-appwrite --save
29
21
```
30
22
31
-
### CDN
32
-
33
-
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
For you to init your SDK and interact with Appwrite services you need to add a web platform to your project. To add a new platform, go to your Appwrite console, choose the project you created in the step before and click the 'Add Platform' button.
44
27
45
28
From the options, choose to add a **Web** platform and add your client app hostname. By adding your hostname to your project platform you are allowing cross-domain communication between your project and the Appwrite API.
@@ -54,6 +37,7 @@ const client = new Client();
54
37
client
55
38
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
56
39
.setProject('455x34dfkj') // Your project ID
40
+
.setPlatform('com.example.myappwriteapp') // YOUR application ID
57
41
;
58
42
```
59
43
@@ -81,6 +65,7 @@ const client = new Client();
81
65
client
82
66
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
83
67
.setProject('455x34dfkj')
68
+
.setPlatform('com.example.myappwriteapp') // YOUR application ID
0 commit comments