Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.24 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.24 KB

Sample Client : Transfer Image (javascript)

Instructions

Pre-requisites

  • node
  • npm

Pre running Steps

  1. Setup and run senz-switch.
  2. Now setup and Run senz-web client both frontend and backend.
  3. Now click on your profile icon and then click on My signature to get your signature.
  4. In order to communicate between 2 devices you need to add both the devices in the same project. So if not added then add 2 devices in any of your projects.
  5. Now go to transfer_image folder and in reciever.js and sender.js file replace the signature and pubkey with your signature and pubkey respectively. Also make sure that sender and reciever pubkeys are different.

Steps

cd samples/javascript
npm install
cd transfer_image
node sender.js
node receiver.js

Steps to run eslint

cd into the javascript folder in the senz-client-samples folder

cd senz-client-samples/javascript

then run the eslint from the terminal as shown

npm run lint ./file_name --fix

for example if you want to run eslint in the transfer_image folder

npm run lint ./transfer_image --fix