Authors: Christopher Chen, Jamie Hsi, Samuel Li, Shrey Gupta, Tyler Beer
NPM Registry Link: https://www.npmjs.com/package/resilientdb-javascript-sdk
This repo holds the source code for the ResilientDB JavaScript SDK. It's meant to communicate with the GraphQL server and provide a simple and easy to use interface for JavaScript applications.
npm install resilientdb-javascript-sdk
import { ResilientDB, FetchClient } from '../../';
const client = new ResilientDB("https://cloud.resilientdb.com", new FetchClient());
const client = new ResilientDB("https://cloud.resilientdb.com", new FetchClient());
const client = new ResilientDB("https://cloud.resilientdb.com", new AxiosClient());
The demo project is under the demo
folder at the root of this repository. To run:
cd demo
npm install
npm run dev
Then open in your browser the dev sever that starts
git clone https://github.com/samuelili/resilientdb-javascript-sdk.git
npm login # first time only
npm run test # make sure tests pass
npm run build # build to ./dist
npm publish # publish to npm registry