Documentation 1.0.1
Related Topics

Labels
Documentation Downloads
All Versions
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 app | Requirement |
---|---|
JavaScript-only client apps |
|
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:
- 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).
- 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.
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