Skip to content

ClearBlade/Tutorial-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Tutorial for ClearBlade

This tutorial uses the ClearBlade JavaScript API to communicate with the ClearBlade Platform. This tutorial will help you get familiar with the ClearBlade Platform and give a brief explanation of concepts like Collections, Code Services, Libraries, Triggers, Timers and Messaging.

The full tutorial is found here

Setup

Clone this repository

  • Do a git clone https://github.com/ClearBlade/Tutorial-JavaScript.git

Editing part1.js to add the SystemKey, SystemSecret, PlatformURL and MessagingURL

-Navigate and open the file Tutorial-Javascript/js/part1.js Update it with your systemkey, systemsecret, platformURL and messagingURL

EX (public cloud):

var initOptions = {
	URI : "YOUR_PLATFORMURL",
    messagingURI : "YOUR_MESSAGINGURL",
    messagingPort: 8904,
    useMQTT: true,
    cleanSession: true,
    systemKey: "YOUR_SYSTEMKEY",
    systemSecret: "YOUR_SYSTEMSECRET"  
}
  • Save the file

If you are using a local instance try platform_url = "http://localhost:8080"; messaging_url = localhost;

Then open index.html in a browser and enjoy the tutorial!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors