[jbosstools-issues] [JBoss JIRA] (JBIDE-18900) CordovaSim: Can't run default FeedHenry app locally

Ilya Buziuk (JIRA) issues at jboss.org
Sat Jan 10 09:18:29 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-18900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031563#comment-13031563 ] 

Ilya Buziuk commented on JBIDE-18900:
-------------------------------------

[~maxandersen], [~gercan] I have several thoughts that I would like to discuss:
1. I do believe that *Start Page* editor should be removed from CordovaSim launch configuration !configuration.png|thumbnail! Not only this parameter is useless but it also ambiguous. Basically, CordovaSim should take start page from the *config.xml* content tag or use index.html as default if nothing was defined (i.e. perform according to the [Phonegap docs| http://docs.phonegap.com/en/4.0.0/config_ref_index.md.html]). 
2. Even if we leave "Start Page" the approach with "run Cordowasim /w local FH server" shortcut will not work properly cause we have only one Launch config for FH and CordovaSim. The point is that if we Run CordovaSim against local FH it will add the url parameter to the LaunchConfig. If we would like to start the app via vanilla "Run with CordovaSim" after that the parameter will be on it's place - http://screencast.com/t/pJmQMtEGr 
3. I have implemented new CordovaSim w/FeedHenry launch config, which works fine and has several enhancements from the user perspective IMO !newLaunch.png|thumbnail!
- UI for using local FH server
- as we discussed  "run Cordowasim /w local FH server" shortcut is misleading, cause the first user's question will be "And how to run against *remote*?" - it's not clear that "Run with CordovaSim" will do it. New Launch Config is sort of self-documented
- if FH team add something in future that would be essential for CordovaSim  we could use this launch for that. No need to write kludges



> CordovaSim: Can't run default FeedHenry app locally
> ---------------------------------------------------
>
>                 Key: JBIDE-18900
>                 URL: https://issues.jboss.org/browse/JBIDE-18900
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cordovasim
>    Affects Versions: 4.2.1.Final
>            Reporter: Ilya Buziuk
>            Assignee: Ilya Buziuk
>             Fix For: 4.3.0.Alpha1
>
>         Attachments: configuration.png, cordovasimFH.png, hello_tom.png, newLaunch.png, preferences.png, ToolsProject-Cloud-App.zip, ToolsProject-Cordova-App.zip
>
>
> Basically, the situation is the following: 
> 1. *ToolsProject-Cordova-App.zip* - is a basic FH hybrid app (all the app does is saying Hello + 'username' from the input field )
> 2. To run this app one simply needs to unpack the archive and import it as a cordova project to the studio
> 3. The application will work with a *remote* server like a charm !hello_tom.png|thumbnail!
> 4. However, there is an option to use *local* server instead of *remote* one
> 5. *ToolsProject-Cloud-App.zip* - is a app for running local server via grunt task runner
> 6. In order to run local server one needs:
> - unpack the app
> - run *npm install .*
> - run *grunt serve*
> Need to find the way to made CordovaSim use this *local* server



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list