Skip to content
Scott Prue edited this page Sep 8, 2015 · 1 revision

Using Grout requires having created an application on Tessellate or running your own Tessellate server.

Browser

  1. Include the Grout library using one of the following:

CDN

To use the CDN, add the following script tag to your index.html:

```HTML
<!-- Grout Library Bundle -->
<script src="http://cdn.kyper.io/js/grout/0.0.4/grout.bundle.js"></script>
```

Bower

Run bower install --save kyper-grout

  1. Start using Grout by providing the name of the app you created on Tessellate.
//New Grout object with the application name 'exampleApp'
var grout = new Grout('exampleApp');

//Login to account with username "test" and password "test"
grout.login({username:"test", password:"test"}).then(function(user){
    console.log('User logged into exampleApp:', user);
});

ES6 or NodeJS

  1. Run npm install --save kyper-grout
  2. Start using grout:
//New grout object with the application name 'exampleApp'
var grout = new Grout('exampleApp');
//Login to account with username "test" and password "test"
grout.login({username:"test", password:"test"}).then(function(user){
    console.log('User logged into exampleApp:', user);
});
Clone this wiki locally