<div dir="ltr">Sounds good ! Let me know when the TicketMonster tutorial is updated so I can take a look and base our instructions on yours.<div style>Seb</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jan 7, 2013 at 5:27 PM, Pete Muir <span dir="ltr">&lt;<a href="mailto:pmuir@redhat.com" target="_blank">pmuir@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;ve created a quickstart for running weinre on OpenShift - <a href="https://github.com/pmuir/weinre" target="_blank">https://github.com/pmuir/weinre</a> (it&#39;s just weinre with the relevant scripts added for OpenShift so the server starts automatically). Krishna is going to add this to the openshift org on github for me.<br>

<br>
We&#39;ll be adding a section to the TicketMonster tutorial on how to use Weinre (setup your weinre server on OpenShift, add the script to the app). I think we could do the same in the kitchensink-html5-mobile&#39;s README - document how to use weinre to debug the quickstart. I don&#39;t think we should add it by default.<br>

<br>
WDYT?<br>
<div class="HOEnZb"><div class="h5"><br>
On 2 Jan 2013, at 16:07, Burr Sutter wrote:<br>
<br>
&gt; We can have more than 1 quickstart for Aerogear :-)<br>
&gt;<br>
&gt; There should be one key/core archetype that shows up on JBoss Central - but there can be a dozen quickstarts to focus on different aspects of Aerogear capabilities.<br>
&gt;<br>
&gt; On Jan 2, 2013, at 11:01 AM, Sebastien Blanc wrote:<br>
&gt;<br>
&gt;&gt; Sure ! I will do  a blog post about Weinre and  on how to integrate it nicely.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jan 2, 2013 at 4:57 PM, Douglas Campos &lt;<a href="mailto:qmx@qmx.me">qmx@qmx.me</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 02/01/2013, at 12:15, Kris Borchers &lt;<a href="mailto:kris@redhat.com">kris@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Weinre is an amazing tool. I would say it is much more useful for hybrid apps as opposed to web apps since, for the most part, you can just run your web app in a desktop browser to debug it. There are definitely cases where testing  on the device is useful though and Weinre makes it much easier.<br>

&gt;&gt; +1<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I would prefer to not add this to the quickstart. I think the extra code will mostly just get in the way of someone trying to grok the JS, especially non-JS devs. I would prefer to see this as a blog post/tutorial/article on AeroGear.org instead as the info is very valuable I just think it needs to be outside of the actual quickstart.<br>

&gt;&gt;<br>
&gt;&gt; Indeed, a blog post on weinre would be rad - wanna give it a run sebi?<br>
&gt;&gt; +1<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Any other thoughts from anyone?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Jan 2, 2013, at 7:58 AM, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt; A few weeks ago, on the IRC channel there was a question about Weinre . For those who don&#39;t know what Weinre is (definition from Weinre&#39;s homepage) :<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; weinre is a debugger for web pages, like FireBug (for FireFox) and Web Inspector (for WebKit-based browsers), except it&#39;s designed to work remotely, and in particular, to allow you debug web pages on a mobile device such as a phone.<br>

&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; So it&#39;s extremely useful and totally in the scope of Aerogear (Web/Hybrid)  which targets mobile development .<br>
&gt;&gt; &gt;&gt; It&#39;s easy to setup :<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 1. Install the Weinre server , if you have npm : sudo npm -g install weinre<br>
&gt;&gt; &gt;&gt; 2. Start the Weinre server : weinre --httPort 8081<br>
&gt;&gt; &gt;&gt; 3. Instrument your web page to act as a debug target by adding the following :<br>
&gt;&gt; &gt;&gt; &lt;script src=&quot;<a href="http://a.b.c:8081/target/target-script-min.js" target="_blank">http://a.b.c:8081/target/target-script-min.js</a>&quot;&gt;&lt;/script&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; To make things even easier, I&#39;ve created a new branch on the kitchensink app where step 3 is not needed anymore[1]. Instead of this you can just activate remote debugging by passing an parameter in the URL :<br>

&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; <a href="http://a.b.c:8080/jboss-as-kitchensink-aerogear-js/index.html?debug=d.e.f:8081" target="_blank">http://a.b.c:8080/jboss-as-kitchensink-aerogear-js/index.html?debug=d.e.f:8081</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Where d.e.f is the IP of the server where Weinre is running.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Then you can access the debug page : <a href="http://localhost:8081/client" target="_blank">http://localhost:8081/client</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; The little tweak I made give more flexibility on how you can integrate your app with Weinre :<br>
&gt;&gt; &gt;&gt; - No hardcoding in your script.<br>
&gt;&gt; &gt;&gt; - You can easily change the IP of the debug server<br>
&gt;&gt; &gt;&gt; - The client makes only make requests to the debug servers (and there are a lot of requests :) ) if debugging is activated.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; If more people find this useful maybe we could merge it for the next release. comments welcome !<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Seb<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; [1] <a href="http://people.apache.org/~pmuellr/weinre/docs/latest/" target="_blank">http://people.apache.org/~pmuellr/weinre/docs/latest/</a>)<br>
&gt;&gt; &gt;&gt; [2] <a href="https://github.com/sebastienblanc/as-quickstarts/tree/weinre/kitchensink-aerogear-js" target="_blank">https://github.com/sebastienblanc/as-quickstarts/tree/weinre/kitchensink-aerogear-js</a><br>

&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; aerogear-dev mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt; &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; aerogear-dev mailing list<br>
&gt;&gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br></div>