argos-sdk is a JavaScript and HTML5 mobile SDK built on top of the dojo library. Out of the box it comes with a SData client library for communicating to SData endpoints.
-
Open a command prompt.
-
change to the base directory where you want to download source code, eg
cd C:\code -
Execute the following commands (clone shown with SSH URL. Substitute with HTTP or Git Read-Only URL as applicable)
mkdir mobilecd mobilegit clone git@github.com:Saleslogix/argos-sdk.git
You should end up with a folder structure like this:
- C:\code\mobile\argos-sdk\
- C:\code\mobile\products\
The products sub-folder is for applications that reference the SDK.
- Open a command prompt in the argos-sdk directory (C:\code\mobile\argos-sdk)
- Run
npm installto install dependencies specified in the package.json file - Source files are in AMD format and can be used directly - no build step required
- Run
npm run lessto compile LESS stylesheets to CSS
argos-sdk uses AMD (Asynchronous Module Definition) modules with modern JavaScript features. All modules use the argos/ prefix:
Example module structure:
define('argos/Application', [
'./View',
'./I18n'
], function(View, getResource) {
class Application {
constructor() {
this.views = [];
}
}
return Application;
});Module ID convention:
src/Application.js→define('argos/Application', ...)src/Fields/TextField.js→define('argos/Fields/TextField', ...)src/Models/Adapter.js→define('argos/Models/Adapter', ...)
Modern JavaScript features (classes, arrow functions, const/let, async/await, etc.) are preserved and supported by current browsers.
Ensure you have a MIME type setup for .less files. Example using web.config in IIS:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".less" mimeType="text/css" />
</staticContent>
</system.webServer>