Just like the name, this is a learning project to get myself famaliar with React and Cisco Spark SDK.
npm install
npm run build
node server
go to `localhost:3000`
- Backend was implemented using
Node.js. - Frontend was implemented using
React. - The connection between backend and frontend was hanlded using
socket.io. - Use
ngrokto build a tunnel betweenlocalhostand a real ip address. - Use
CiscoSparkSDK to implement the chat, message and video call functions.
delete.jsfile is for deleting redundant webhooks. (SeeHow to usedelete.js` section)
- Download Postman.
- Open a new tab, enter: https://api.ciscospark.com/v1/webhooks with
GETrequest. - Go to
Header, setContent-typetoapplication/json; charset=utf-8enterandAuthorizationtoBearer {your access token}. (Note there is a space betweenBearerand the token) - Click
Send. - Copy the json output to
fuckvariable indelete.js. (Forgive the variable name :p) - Save file and go to terminal,
node delete.