Skip to content

Latest commit

 

History

History

sdk-backend-node

SDK Backend Node Example

Welcome to the SDK Backend Node Example project, a hands-on guide demonstrating how to leverage the power of Push Protocol in a backend environment using Node.js. This resource is an invaluable companion for developers keen to integrate Push Protocol into their backend services. Dive into the code to gain a comprehensive understanding of how to deploy various features of the Push Protocol in a Node.js backend.

Overview

The sdk-backend-node project offers a practical tutorial on how to set up and configure Push Protocol on a server, including guidance on managing notifications and interfacing with the blockchain. This includes essential examples related to:

  • Push Notifications
  • Push Chat
  • Push NFT Chat
  • Push Video

Through these examples, you'll see how these features can be successfully implemented and integrated using Push Protocol.

Getting Started

Embark on your journey with this project by cloning the repository and installing the dependencies:

git clone https://github.com/push-protocol/push-sdk.git
cd push-sdk
yarn install

Note - We are using yarn and strongly advise to use yarn 1.x to avoid any NPM issues.

Setting up the SDK-Backend-Node

  1. Navigate to the packages/examples/sdk-backend-node directory.
    cd packages/examples/sdk-backend-node
  2. Set up your environment variables by creating a .env file based on the provided .env.sample file.
  3. Install the node dependencies
    yarn install

Running the SDK-Backend-Node

yarn start