Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Realtime Prototyping Solution

Hello everyone!

I just want to share our latest experiment named Livetanium.

Livetanium

Made out of titanium, nodejs and unicorns, our Livetanium library lets you code Titanium Mobile apps and see changes in realtime. It uses a nodejs server to pipe filechanges to the app, and these changes are applied in realtime. It's iPhone only at the moment, but works in both the simulator and on the actual device. You can see a quick walkthrough here or check out the source.

Please try it out and let us know what you think!

— asked December 1st 2010 by Jacob Waller
  • device
  • iphone
  • jss
  • nodejs
  • opensource
  • prototype
  • quick
  • realtime
  • reload
  • tips
  • trick
  • unicorns
0 Comments

8 Answers

  • WOW!

    I want this!

    — answered December 16th 2010 by Adriano Paladini
    permalink
    0 Comments
  • Very well done! Quick question, what happens when one of the updated files has a syntax error or an exception? Does the simulator throw an exception that is recoverable? I suppose it would be easy to just relaunch the App on the simulator if it crashes.

    — answered March 7th 2011 by Dan Boorn
    permalink
    1 Comment
    • Hi Daniel!
      Exceptions are treated normally - eg. the red error screen will pop up if you don't catch the error, or if it is a parse error. However, if you do something Titainum doesn't like (sending garbage to element.add or similar), the app will probably crash. At the moment, we do not relaunch it, but I guess we could it somehow. Thanks for the input!

      /Jacob

      — commented March 8th 2011 by Jacob Waller
  • Jacob

    That looks very cool! Well done! :)

    — answered December 1st 2010 by Paul Dowsett
    permalink
    0 Comments
  • Verrry cool!

    Keep it up!

    /J

    — answered December 1st 2010 by Joacim Boive
    permalink
    0 Comments
  • Thanks for the encouragement!
    It makes us wanna create more tools for simplifying the life of Titanium developers, so stay tuned! :)

    Cheers
    /Jacob

    — answered December 2nd 2010 by Jacob Waller
    permalink
    0 Comments
  • Wow this is really cool! This should make life simliar, especially when working with UI. Haven't tried it but quick question. Is it possible to use the regular javascript style of coding or do you have to use the K variable type as you do in the video?

    — answered December 2nd 2010 by Sj Singh
    permalink
    0 Comments
  • Hi, I tried to use it but…the server.js doesn't work!

    node.js:63
    throw e;
    ^
    Error: ENOENT, No such file or directory './Documents/iPhoneApps/kwhinnery-Snapost/1.1.x/Snapost/build/iphone/lib/libTiCore.a'
    at Object.statSync (fs:326:18)
    at /Users/matteoannibali/Documents/iPhoneApps/krawaller-Titanium-Tools-6bb38b3/Resources/server.js:57:16
    at Array.forEach (native)
    at /Users/matteoannibali/Documents/iPhoneApps/krawaller-Titanium-Tools-6bb38b3/Resources/server.js:55:30
    at /Users/matteoannibali/Documents/iPhoneApps/krawaller-Titanium-Tools-6bb38b3/Resources/server.js:57:44
    at Array.forEach (native)
    at /Users/matteoannibali/Documents/iPhoneApps/krawaller-Titanium-Tools-6bb38b3/Resources/server.js:55:30
    at /Users/matteoannibali/Documents/iPhoneApps/krawaller-Titanium-Tools-6bb38b3/Resources/server.js:57:44
    at Array.forEach (native)
    at /Users/matteoannibali/Documents/iPhoneApps/krawaller-Titanium-Tools-6bb38b3/Resources/server.js:55:30

    I suppose the problem is in "getAllFiles"..
    The method try to get every js file in my Mac!

    Please Help!

    — answered December 15th 2010 by matteo annibali
    permalink
    1 Comment
    • Hi Matteo!
      We'll look into your problem and also update the script to be much more user friendly.

      Cheers
      /Jacob

      — commented December 16th 2010 by Jacob Waller
  • Jacob,

    I would love to try this. Can you post a more detailed instructions to install, you know, just for the dummies? :)

    Great idea,

    Cheers

    Daniel

    — answered December 16th 2010 by Daniel Ander
    permalink
    1 Comment
    • Hi Daniel!
      We'll definitely post more detailed instructions, but unfortunately not right now.
      I can tell you what we intend to do: wrap it all up in a npm repo (a package manager for nodejs) and make it much smarter on runtime.

      This would mean that to install livetanium, you'd have to make sure you have nodejs, then open the terminal and run npm install livetanium.

      Then, whenever you'd like to use it in a project, you'd just open a terminal and cd somewhere into your project, run livetaniumand it would take care of the rest. However, we're not quite there yet, but I'll keep you posted!

      Cheers!
      /Jacob

      — commented December 16th 2010 by Jacob Waller
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.