1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00
appwrite/app/sdks/console-javascript
2020-04-11 13:02:21 +03:00
..
docs/examples Updated SDKs 2020-04-11 13:02:21 +03:00
src Updated SDKs 2020-04-11 13:02:21 +03:00
CHANGELOG.md Updated SDKs 2020-04-05 23:39:45 +03:00
LICENSE Updated SDKs 2020-02-23 20:09:34 +02:00
package.json Updated SDKs 2020-04-06 07:55:38 +03:00
README.md Updated SDKs 2020-04-06 07:55:38 +03:00

Appwrite SDK for JavaScript

License Version

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 JS 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

Appwrite

Installation

NPM

To install via NPM:

npm install appwrite --save

If you're using a bundler (like Browserify or webpack), you can import the Appwrite module when you need it:

import * as Appwrite from "appwrite";

CDN

To install with a CDN (content delivery network) add the following scripts to the bottom of your tag, but before you use any Appwrite services:

<script src="https://cdn.jsdelivr.net/npm/appwrite@1.0.0"></script>

Getting Started

Initialise the Appwrite SDK in your code, and setup your API credentials:


// Init your JS SDK
var appwrite = new Appwrite();

appwrite
    .setEndpoint('http://localhost/v1') // Set only when using self-hosted solution
    .setProject('455x34dfkj') // Your Appwrite Project UID
;

Contribution

This library is auto-generated by Appwrite custom SDK Generator. To learn more about how you can help us improve this SDK, please check the contribution guide before sending a pull-request.

License

Please see the BSD-3-Clause license file for more information.