Previewing IBM MobileFirst CLI-created project in browser - ionic-framework

I'm trying to learn how to build and manage apps using MobileFirst CLI. I am used to creating them in Eclipse via the MobileFirst Studio. In the Studio-created project, there is a commons/ folder (and the mobilewebapp environment) which lets me preview the app via browser. Is there an equivalent way of doing this via CLI? Is this the same as running ionic serve because I am using Ionic.
Thanks!
MFP CLI 7.1,
Ionic 1.2.4

If you created a CORDOVA application using MobileFirst CLI v7.1, then no there is no commons folder because you've created a Cordova app, not a MobileFirst Hybrid app.
For future compatibility, it is advised that you will create a Cordova app and not a Hybrid app.
In the Cordova app, you simply have a js and css folders and an index.html file. These are equivalent to the same js and css folders and index.html you would have in the common folder of a MobileFirst Hybrid app.

Related

How to integrate SAP UI5 application to Apache Cordova for Mobile platform

I am trying to integrate SAP UI 5 application to mobile application, for this I am working with Apache Cordova.
Created a sample application in Eclipse Luna which is having SAP UI5 Plugin
Created a sample Apache Cordova Application using Windows CLI
Copied the webcontent files from SAP UI 5 application to www folder of cordova application
Added Android Platform
Build the application
Now while running the app in mobile device, I am getting white blank page. I am not sure what's the problem is ? Can someone help me out.
As per my experience Wherever you built the application doesn't matter.!
You can create an Apache cordova project first then,copy the SAPUI5 Resource folder under www folder with your application files.The Resource folder which will be holding all the libraries which is mandatory to support SAPUI5 controls.
Also keep your Resource folder path in you index.html file in your project.
Then next step you try to build your application using CLI or Command prompt with Cordova standard commands.
I hope this will help you..!
Cheers.

How to change the Google App Engine SDK location in Eclipse Neon.3?

I have installed the latest Google Cloud SDK (200.0.0) and Google Cloud Tools on Eclipse Neon.3. The GCloud App Java Extensions have also been installed as below.
It seems the latest Google App Engine SDK 1.9.63 has been installed at:
C:\Users{USERNAME}.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.9.63
According to Google App Engine online documentation, I had to download and unzip the SDK (appengine-java-sdk-1.9.63) to a different directory.
I would like to use the SDK that I downloaded but the one in Maven. How can I change the location of the installed Google App Engine SDK in Eclipse?
EDIT:
I would like to clarify a few things:
.m2\repository is where Maven customarily caches Maven artifacts. Whenever any Maven projects make use of any JARs, they will generally be cached in that local repository. Since it is just a cache, you can safely delete the repository anytime in general. mvn package, for example, will download and cache necessary JARs again.
That said, .m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.9.63 just contains a cached JAR: appengine-api-1.0-sdk-1.6.3-jar. Certainly, you wouldn't call a single JAR "Software Development Kit (SDK)"; I would call it, if I have to, an App Engine API JAR. Also, the JAR might have been cached by someone else than "Google Cloud SDK"; any Maven project that makes use of the classes in the JAR would automatically cache it.
"Cloud SDK" is a collection of tools and libraries for Google Cloud development and management.
"App Engine SDK for Java" as in https://cloud.google.com/appengine/docs/standard/java/download is another, different collection of tools and libraries for App Engine Java development, which you won't probably need here. The SDK is separate and independent from the Cloud SDK.
You don't need to download "App Engine SDK for Java" when using "Cloud Tools for Eclipse" (CT4E). CT4E is Cloud SDK-based and not App Engine SDK-based. Why do you need to manually download the App Engine API JAR? For example, you can add the JAR to your project in Eclipse by Preferences > Java Build Path > Libraries > Add Library > Google Cloud Platform Libraries > App Engine API > Finish.
You cannot configure App Engine SDK in Eclipse, you can just configure Google Cloud SDK inside Eclipse Google Cloud Tools.
Google App Engine SDK is a component of the Google Cloud SDK {1} so you can install it this way:
gcloud components install [COMPONENT-ID]
If you are using Java, [COMPONENT-ID] would be app-engine-java.
Good luck!
{1}: https://cloud.google.com/sdk/docs/components

Where do you put the libraries(sap.ui.core.js etc.) when downloading OPENUI5 SDK locally

I have a SAPUI5 Application developed via Eclipse(Using SAPUI5 Plugins) and now i want to call it to deploy on a Web Server.
But, in eclipse, i downloaded the plugins and libraries through Eclipse->New Software. Now, i want to download all libraries from http://openui5.org/download.html and place it locally.
Now, in eclipse version the code was
<script src="resources/sap-ui-core.js">
Now that i have downloaded the OPENUI5 SDK, where should i put it and how to refer it.
Most probably you will use Tomcat as a web server for testing, see here the basic steps for installation.

Unable to integrate ionic project into Mobile First

The worklight studio plugin fails to identify ionic tags when I import files from my ionic project into my worklight project.
Note: My ionic.bundle.js and ionic.css load fine.
It is better to not use classic Hybrid apps generated by MobileFirst Studio 7.1. Instead, create a Cordova app from the MobileFirst 7.1 CLI and integrate that app with Ionic based on the steps provided in this blog post: https://mobilefirstplatform.ibmcloud.com/blog/2016/08/14/going-forward/

Error compiling Web app using GWT in eclipse

I am following a tutorial to make a very simple demo app using GWT with eclipse ee.
I created a Web Application using steps: select File > New > Web Application Project. From the Eclipse menu, accepted defaults, unchecked use Google App Engine SDK & Generate GWT project sample code. Run it by Debug As > Web Application. It raises this error:
Missing required argument 'module[s]'
Google Web Toolkit 2.2.0
..................................................................................................................................................................
and
module[s] Specifies the name(s) of the module(s) to host
If you don't want to generate sample code, you have to create the gwt xml module (MyProject.gwt.xml), because eclipse doesn't generate this automatically.