Clay provides a powerful Platform as a Service for building web & mobile applications in a Javascript. In this tutorial, you create a Web application using pure Javascript we don't need any special frameworks.
Familiarity with Javascript is helpful, but not required for this exercise. The tutorial starts with an application template to get you up and running. You then walk through the steps to securely run the application within the Force.com platform.
You start with a pre-existing Clay MVC-based application stored on Clay App Store. Then, as you make changes, all you need to do is refresh the browser, not waiting!
Now that you have the project locally, you need download the javascript dependencies, this is done automatically using NPM, a tool from NODEJS.
NPM downloads all libraries specified in a file called package.json, check the dependencies section to better understand how it works. It's really simple.
This step shows how to develop HTML5 and Javascript Apps in Salesforce. Clay ships with a JavaScript development server that automates over 10 integration tasks, sit back and relax.
clay server
To develop in Salesforce our local server must run in HTTPS, clay ships with unsigned SSL Certificates for localhost, your browser will alert your the first time. You must accept the Certificate, on Google Chrome click on advances and accept.
.startup{ display: block; } .startup { display: none; }
Clay Toolbelt's development server automatically created a VisualForce and transformed all files to point to the ones in you computer, then uploaded the VisualForce page. The uses Salesforce Front door to Log In and open the VisualForce Page. Since the VF Page is using assets in your computer, all it takes is a screen refresh after a change.
You can have several Salesforce Orgs and Clay Accounts registered at the same time. Control accounts with:
clay users --add clay users --remove