How to create a service in GWT project? - google-app-engine

Hi I am new to App Engine and a beginner in web services world.
I want to create a service with GET method in my GWT project and I
want to call that service from my JavaScript. I am using Eclipse IDE with GWT
plugin. I have started with that greeting services pages. But how to create a REST
model web service there?

Thanks Michael & Stivlo.
I understand that GWT is a toolkit that helps me to code in java, compiles it and the result(.war) I can deploy in Google App Engine.
Now I found "Restlet" to be useful for creating Rest services and I am on it.

Related

New project web application

I have been doing websites using WordPress, Elementor with basic frontend code and some Python basic apps.
Now I would like to develop a "real" web application but I am lost.
I would like to know which Framework should I use o fit my new project:
Webpage (landing)
Users accounts and personal Dashboard with some analytics and data reports. Export and import capabilities.
Possible Mobile app linked to the Dashboard.
IBM cloud or some cloud environment to set up server, APIs...
I am reading about Node.js, React.js and React Native, Django...
I you could help me with some ideas or which software to use will help me a lot.
I am already creating some mockups for the frontend of the web with HTML,CSS and JavaScript using Bootstrap just to test it.
Thanks in advance.
Diego
I need some ideas to develop the fill project without having to change the framework with the project started.

Is requirement of AngularJS for big web based app necessary?

I wanted to build a maven based project based on google app engine which uses RESTful web services. So is angularJS really required in this type of project or can it be achieved without it also?
No, AngularJS is not required. While it provides a $resource module that works with RESTful web services, you can use other front-end tools as well. For example, smartphone apps written in their native languages can use RESTful services.

Explain Cordova project + angularJS, phonegap project, ngcordova

I'm confused about these technologies. Actually i want to build a mobile application with SQLite database for offline as well as should support webApi services or something. So it should support both SQLite and server which targets IOS, Android and windows.
I did some R&D and gather some knowledge about cordova and angular.
I like to use angular on my mobile application so that i can manage my client side data and app flow easily and wisely.
Now i'm confused whether to use cordova or phonegap or ngcordova (which i recently came to know that it exists).
As i mentioned, i want a mobile app with SQLite and support webApi services and also should support multiple platforms.
So now where/how to start and which is best one for me. i'm developing this app for production i mean real time app.
please help to start with.
This is my email id jprasanth74#gmail.com if you have any guide please share it..
Cordova is use for create build in different platforms
you have to start write code in angular.js
just use this sample link
https://blog.nraboy.com/2014/09/implement-barcode-scanner-using-ionic-framework/
to create first app and send me your email i will send you the startup guide line to create enviroment with cordova and ionic framework
ionic framework is support angularjs and cordova both in one package and it is very faster then other framework
http://ionicframework.com/
just dive me the email address i will send you the basic startup

Developing a web client without servlet

I m new to appengine development.I have a few basic question about web client for appengine.When we make a google cloud module in Android Studio, an android client, a back end and a WEB CLIENT is auto-generated.A few files are auto-generated for web interface. My questions are:
why do I need WEB-INF/web.xml for web client? I also found there's a servlet api dependency added in gradle, though I didnt find and servlet file, what is it used for ?
I want to make a web interface/client for my andorid app, but I dont
know servlet,jsp, can I make it with pure javascript or js lib?
Will the default template for web client work from any other web-hosting
than appengine?
How can I make a web client with pure javascript,css,html, will the
google cloud doc for javascript suffice for this purpose?
why do I need WEB-INF/web.xml for web client? I also found there's a
servlet api dependency added in gradle, though I didnt find and
servlet file, what is it used for ?
Both are base elements for Java web applications even though you are not using servlets most modern web frameworks are built on top of them.
I want to make a web interface/client for my andorid app, but I dont
know servlet,jsp, can I make it with pure javascript or js lib?
Yes, GAE are standard web applications so you can build and app using pure HTML + js.
Will the default template for web client work from any other
web-hosting than appengine?
short answer, no. The App engine SDK depends on several APIs available strictly on the GAE environment. Shouldn't be hard to get an empty webapp template working on a tomcat thought.
How can I make a web client with pure javascript,css,html, will the
google cloud doc for javascript suffice for this purpose?
I dont know exactly what you mean by "the Google cloud Doc" but mostly the answer is yes, all App Engine, Cloud Compute and Google Drive are capable of hosting HTML+JS.

Can Google App Engine / GWT plugin work with multi-module projects?

The getting started tutorial for Google App Engine / GWT describes a very simple application using a single eclipse project (module). I'm porting a JPA / Hibernate based project to GAE and have a service layer module. It all compiles but when I attempt to run as a web-app from eclipse, obviously it doesn't have access to the service layer.
How do I get Eclipse to build a Jar, and include it (with the src) in the GWT project module - i.e. deployed to the WEB-INF/lib directory?
I can't believe that Google are not addressing this and seem to have just skimmed over this gaping hole.
You should use Ant and setup an Ant Builder that executes when you save your java classes to create the Jar
This should accomplish what you are looking for.

Resources