README.md

TiShadow

TiShadow provides Titanium developers the ability to write code snippets in a browser
and render the code across all iOS and Android devices. NEW TiShadow now
also allows the deployment of apps to devices. There are three
parts to TiShadow: the TiShadow server, TiShadow app and build scripts
for deploying full applications.

Have a look at the following video to get any idea of how to use TiShadow and what it can do. (A little outdated.)

Have a look at this presentation (July 2012) recently given at the TiLondon meetup for a look at most of what you can do with TiShadow.

TiShadow Server Install

TiShadow can be installed via npm using the following command:

sudo npm install -g tishadow

NOTE: I will endevour to update the npm package on significant changes but
might lag, so if the app doesn't seem to be playing nicely install the
server side from source. In general upgrade the server side and app at
the same time.

Once installed, the server can be started by typing the following
command:

TiShadow App

Some native zip modules what are included in the app/modules
directory. Install these as you would any native module. Please see
the README file there.

A custom build of the Titanium SDK is needed. OSX builds can be download from the
"Downloads" section and are in line with the Titanium SDK Releases 2.0.2
and newer. The source can be found in the my titanium_mobile fork with each release
tagged, e.g., tishadow_2_X_X. The following commit (and this one) contains all the changes.

Since the TiShadow app is not yet in the App Store or Google Play, clone the
code and run/install as you would any Titanium project.

How To

Common Tasks

Fire up the server and launch the app.
From the app just enter the ip address of the computer running the node
server and hit connect.

Code Snippets Via Webpage

Enter the following address in a browser window:

http://localhost:3000/

In the editor you can enter code and press Command+s to deploy the code
snippet to all connected devices.

Launch From Web

Currently only working on iOS

You can also use TiShadow to bundle an app and launch it from a web
page. You the command tishadow bundle to bundle the app for a
TiShadow distribution. Then include a link to the bundle in your webpage
using the following format, e.g. : tishadow://mydomain.com/bundle.zip.
Tapping on the link from your browser should launch the app in TiShadow.

VIM Shortcuts

Those using vim/gvim/mvim for development might what to add these
shortcuts (or similar) to the .vimrc/.gvimrc files. It adds the shortcuts, F6
to save and do a tishadow update, and Shift+F6 to save and perform a full
tishadow deploy: