Adding Back-end to HTML5 apps with App42 Platform

HTML5 Adding Back end to HTML5 apps with App42 Platform

HTML5

App42 platform announces its Java Script API for Backend as a Service platform. Now, one can add backend to HTML5 Apps with few lines of code without writing any server side logic using  App42 platform. One can also choose to use different technical and business services based on app requirement and develop HTML5 Apps with  lesser time.

Here are the steps to add this in to your HTML5 Apps

  • - Download the latest App42 Java Script SDK
  • - Unzip the file and copy App42-all-x.x.x.min.js to your project  source.
  • - Add the following script tag in the your html page
  • 1
    
    script type="text/javascript" src="App42-all-x.x.x.min.js"
  • - Initialize the library using
  • 1
    
    App42.initialize("API KEY","SECRET KEY");
  • - Instantiate the service that one wants to use in the App, e.g. using User service one has to do the following
  • 1
    
    var user = new App42User();
  • - Now one can call associated method of that service e.g. user creation can be done with the following snippet
  • 1
    2
    3
    4
    5
    6
    
    user.createUser(userName, pwd, email,{
    success: function(object) {
    // Callback for Success },
    error: function(error) {
    // Callback for error }
    });
  • - Executing above method will create user for your app in App42 cloud.
  • - You can login to AppHQ console and can see the created user there.
  • - You can also use your UserSample.HTML/StorageSample.HTML shipped with distribution for more details.
  • - Similarly one can use other App42 services like File UploadGamingNoSQL Storage to make user engaging social Apps for HTML5.
twitter Adding Back end to HTML5 apps with App42 Platformfacebook Adding Back end to HTML5 apps with App42 Platformgoogle Adding Back end to HTML5 apps with App42 Platformlinkedin Adding Back end to HTML5 apps with App42 Platformpinterest Adding Back end to HTML5 apps with App42 Platformreddit Adding Back end to HTML5 apps with App42 Platformstumbleupon Adding Back end to HTML5 apps with App42 Platformtumblr Adding Back end to HTML5 apps with App42 Platform

Leave a Reply

Your email address will not be published. Required fields are marked *


× 7 = twenty one

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>