• Home
  • Getting Started
  • Documentation
  • API References
  • Downloads
  • Support
Verivo
DevCenter
  • Welcome, Anonymous
  • |
  • Log in
  1. 1.0.1 Documentation
  2. Using the Akula SDKs
  3. Using the Client SDKs
  4. Configuring the Client Development Environment
  5. Configuring a JavaScript Development Environment
Printable version    

Documentation 1.0.1

Related Topics

Page: Handling Exceptions and Errors
Page: Synchronous and asynchronous requests
Page: Configuring the Client Development Environment
Page: Configuring a JavaScript Development Environment
Page: Initializing a Connection to the Akula Server
Page: Remote Data Access from JavaScript Clients
Page: Using the Akula SDKs
Page: Using the Client SDKs
Page: Converting a Response to a Data Model
Page: Configuring an iOS Development Environment
Page: Configuring a Cordova Development Environment
  

Labels

  • javascript
  • javascript_sdk
  • client_app

Documentation Downloads

  • Installing and Configuring Akula
  • Building Akula Apps
  • Release Notes

All Versions

Latest Official Version (2.5)
Version 3.0 Beta
Version 2.5
Version 2.1
Version 2.0
Version 1.5
Version 1.0.1
Your Rating: Thanks for voting! Please Wait Please Wait Results: PatheticBadOKGoodOutstanding! 0 rates
Configuring an iOS Development Environment      Configuring a Cordova Development Environment
Documentation Version 1.0.1
NOTE: You are currently viewing version 1.0.1 of the Akula documentation.

View the latest version of this page or go to the current documentation home page.

Configuring a JavaScript Development Environment

JavaScript client apps run within a browser or web view, either on a desktop or mobile device. To develop client apps, your development environment must meet the following system requirements:

Type of appRequirement
JavaScript-only client apps
  • Windows or Mac OS X
  • Java JDK 7
  • Any standard text editor or JavaScript IDE

To configure a JavaScript development environment to use Akula, add the Akula JS library files to your project.

JavaScript versions of the Akula persistence and sync features require a plugin that is specific to each environment. As a result, to use sync or persistence in a JavaScript-based app, you must use Cordova. For more information, see Configuring a Cordova Development Environment.

To configure the JavaScript development environment:

  1. Locate the /javascript-sdk/lib directory in the location where you installed Akula. If you have not done so already, download Akula from the Downloads page (you must log in to access this page).
  2. Copy the Akula JavaScript library file and all dependent libraries to a directory that is accessible to your app. 

    The specific files you must copy into your project are:
    • akula.js
    • akula-min.js
    • underscore-min.js
    • cryptojs-core-min.js
    • cryptojs-sha512-min.js
    • json2-min.js
    • jquery-1.8.2-min.js

      Note

      Note that both the akula.js and akula-min.js files are shown here. You only need one per project. Verivo recommends using the akula.js file for development environments, and akula-min.js for deployment environments.

  3. Add the Akula JavaScript library and its dependent libraries to your app by adding the following lines:

    You can modify the paths as necessary, based on where you copy the library files to in your project. 

    Note

    The order of JS files that are loaded by your Cordova project is important. You must adhere to the following rules:

    • underscore-min.js must appear before the cryptojs files.
    • akula.js must appear after the other JS files.
                                               

0 Comments

Hide/Show Comments
You must log in to comment.
 
Configuring an iOS Development Environment      Configuring a Cordova Development Environment
  • Last edited by mhorn@verivo.com on 2013-10-31 19:17:00.0

  • Privacy Policy | Legal Information
    © Copyright 2014, Verivo Software, Inc. All Rights Reserved.