-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Started
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.
- Include the Grout library using one of the following:
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>
```
Run bower install --save kyper-grout
- 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);
});
- Run
npm install --save kyper-grout
- 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);
});