The DDC SDK is a development kit used by developers to create applications that interact with the CERE infrastructure. It provides a set of modules and methods that allow seamless integration with the Cerebellum Network's decentralized data cloud (DDC).
- @cere-ddc-sdk/ddc-client - The main DDC SDK interface with all methods for working with DDC
- @cere-ddc-sdk/blockchain - Work directly with the Cere blockchain
- @cere-ddc-sdk/file-storage - Upload large files, using chunk streaming
- @cere-ddc-sdk/ddc - Low level package to directly communicate with DDC nodes
- @cere-ddc-sdk/cli - DDC Command Line Interface
The playground app is small demo application you can try how DDC SDK works in browser.
-
Prepare Node.JS version
nvm use
-
Install dependencies:
npm i
-
Build all packages and Playground app:
npm run build
-
Run playground application:
npm run playground
Out of the box the playground app can connect to DDC
Devnet
andTestnet
. To connect it to local environment, the environment should be started in a separate terminal. -
Check examples
Run tests
npm test
On the first run it will take some time to prepare the local testing environment
It is possibly to run DDC infrastructure on local machine:
npm run test:env
This command will use Docker to start Cere Blockchain node and several DDC nodes (CDN and storage). The environment is started each time before tests execution and stopped after it.
There is can only be one instance of local environment running at the same time.
The main source of documentation for all SDK packages is the source code doc comments, which are in the tsdoc format. If you have changed or added new doc comments, run the following command to regenerate the READMEs.
npm run docs
-
Create a release
npm run release
It will detect the next version (based on Conventional Commits history), update
CHANGELOG.md
s, create release tag, commit and push changes to the current branch.To create an unstable release (
-rc.*
):npm run release:rc
-
Publish the packages using Publish GitHub Action
-
Deploy Playground using Deploy playground GitHub Action