- A web server (see NodeJS steps if you do not have a web server installed or would like to use a lightweight dev server)
-
Install NodeJS from: http://nodejs.org/
-
Open a command prompt in the argos-saleslogix directory
-
Install gruntjs (http://gruntjs.com/getting-started)
npm install -g grunt-cli
-
The package.json file in the root of argos-saleslogix contains nodejs dependencies, to install them run:
npm install
GruntJS is a task runner. We have defined tasks to run in Gruntfile.coffee. Here are some commands you can run via the command line (in the argos-saleslogix directory)
- Unit tests:
grunt test
- Missing a web server? Run
grunt connect:server:keepalive
and open your browsser to http://localhost:8000/ - JSHint:
grunt jshint
- Plus many more: http://gruntjs.com/plugins
-
Open a command prompt.
-
change to the base directory where you cloned Argos SDK, eg:
cd \projects\sage\mobile
-
Execute the following commands (clone command shown with READ-ONLY URL; if you are a commiter, use the appropriate Read+Write URL).
cd products git clone git://github.com/SageSalesLogix/argos-saleslogix.git
Note: If you're downloading and extracting the zip file instead of using git directly, the top-level folder in your download will probably be named something like "SageSalesLogix-argos-saleslogix-nnnnn". You'll want to rename this folder to argos-saleslogix, and put it under your products sub-folder. You'll end up with a folder structure like this: ...\mobile\argos-sdk ...\mobile\products\argos-saleslogix
-
On your web server, create a Virtual Directory (IIS6), an Application (IIS7), or an Alias (Apache), or functional equivalent, called
mobile
, pointing to the base directory where you cloned Argos SDK, eg:cd \projects\sage\mobile
-
In your browser, navigate to the path
/mobile/products/argos-saleslogix/index-dev.html
on your web server, eg:http://localhost/mobile/products/argos-saleslogix/index-dev.html
-
Windows
-
The Java Runtime (JRE)
-
The environment variable,
JAVA_HOME
, pointing to the JRE base path, eg:c:\Program Files (x86)\Java\jre6
-
Save this gist as
build-product.cmd
(or for *nix save this gist instead asbuild-product.sh
) to directory where you cloned Argos SDK. -
Open a command prompt and excute the following, changing paths as appropriate, eg:
cd \projects\sage\mobile build-product saleslogix
-
The deployed product will be in a
deploy
folder in the directory where you cloned Argos SDK.
-
Open the deploy folder for the product, eg:
mobile\deploy\argos-saleslogix
-
If the mobile content is going to be hosted on a different server, the manifest file and the environment file must be changed (or a new one created).
-
In the
index.manifest
file at the root of the deployed site, add the full SData server URL, including the trailing slash, to the end of theNETWORK:
section, eg:NETWORK: ../sdata/ http://mysdataserver/sdata/
-
Modify the environment file,
environment/default.js
, to point to the appropriate SData server. If a new environment file was created, it must be added to the files:- index.manifest
- index.html
- index-nocache.html
-
-
Copy the entire contents of the product's deploy folder (eg:
mobile\deploy\argos-saleslogix
) to a location on the webserver that will be hosting the mobile content (hereafter, mobile server). -
On the mobile server, create a Virtual Directory (IIS6), an Application (IIS7), or an Alias (Apache), or functional equivalent, called
mobile
, pointing to the directory where you copied the content to. In the recommended configuration, on the same server where SData is being hosted, this mapping should be at the same level as thesdata
mapping. -
On the mobile server, ensure that the MIME type corresponding to the
.manifest
extension istext/cache-manifest
. This is a requirement for application caching/offline access. -
If SData is being hosted on a different server than the mobile host, CORS (Cross Origin Resource Sharing), must be enabled on the SData server. You can find documentation for setting it up on IIS at: Setting-Up-CORS.
-
You can customize the product without modifying the core views.
-
See the [Argos Sample][argos-sample] customization module for a set of customization scenario examples.