I'm working on an App that runs a webservice hosted an Android device. I'm using a basic webserver right now and have been asked to be able to support technologies such as FastCGI. I found Lighttpd which seems like it might satisfy, but I don't know where to begin with integrating it to Android. Does anyone have any suggestions of where to look to find an example of such a use. I'm open to any webserver as long as it supports FastCGI.
Here is blog post about successful build: http://hex.ro/wp/blog/php-and-lighttpd-for-android/
It might help you to begin.
Related
I am a newbie in Google App Engine. I am trying to create a service (previously called "modules") in Eclipse in Java. I didn't find any resources which shows a step-by-step guide to create a service for app-engine in eclipse or any other IDE. What are the configuration files I need to take care of?
I have tried to find docs on cloud platform and everything says about having front-end. There are articles about micro-service architecture and migrate an existing app. But I don't have an existing app. Every tutorial talks about cloning an hello world app and deploying it which shows hello world with appspot url. But didn't found anything for the service(module).
The service I am trying to create does not have a front-end. It just runs in the background and watch the database and sends emails and notifications to the users based on database change. This is not an API and there isn't any request-response architecture.
How can I achieve this?
Any reference material or samples which can guide me to the right direction?
To set up an App Engine project you could have a look at Romin Irani tutorials which are very good (https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.qclm8gyd9).
There is also a free MOOC on Udacity which covers Endpoints with Eclipse: https://www.udacity.com/course/developing-scalable-apps-in-java--ud859
Both cover the building of Endpoints and querying them from front-ends, which I understand is not your goal. But the Udacity course covers Cron jobs and sending of emails (both in Lesson 5), which is what you would use for your needs. See also https://cloud.google.com/appengine/docs/java/config/cron#creating_a_cron_job which is very good Google documentation.
So in a nutshell: I would start by Romin's tutorial to understand Eclipse set-up and main concepts, then follow Udacity MOOC (especially part on Cron and mail) and then dive into the Google doc for the fine tuning of your development.
Last but not least, for sending emails, nowadays, Google advice to use Sengrid. But I think it worth following the Udacity lesson on sending email, even if you switch from native email sending to Sendgrid later on. Again, the doc is complete and clear.
Hope this helps!
I am working with some friends on an android application and we want to use data store on google app engine.
Can anyone help me find a tutorial on how to create a connection between the android app and the data store, I couldn't find a good one myself.
Thanks.
I suggest you look at a few, quite recent Google services:
Endpoints will help you create an interface between your server code and your client, including generating a client library and doing OATH2 authentication.
Volley is an Android library that makes it easy to perform the requests to the server. (There are a number of 3rd party alternatives to Volley that are also good.)
Mobile Starter Kit is a simple way to get started, doing everything from the client initially, but with the ability to customize the server later.
Take a look at this Google blog post from a few days ago:
http://googlecloudplatform.blogspot.ca/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html
Those are good starting points, but don't assume you should use the recommended Google services. Endpoints for example, will lock you into GAE and it doesn't sound like you need the multi-platform support it offers. You could just create a REST/JSON servlet using one of many libraries.
I reccomand DropBox API.
It is not what you asked, but I guess you didnt start using the Google API because you are looking for a tutorial..
DropBox API has a lot of info and tutorials and it's kinda easy to handle..
My website is deployed on google app engine. Now, I'd like to create a new page/section in my web site to add a blog.
I'm wondering if you know a simple blog written in java that could be deployed on Google app engine? I'm not afraid to edit this code...
Many Thanks!
P.S : my subject is not a duplicate. The other solutions are for python and their assume that your deploy ONLY the blog on your google server.
B3log Solo is a very active open source blog system based on GAE/Java, while currently multi-languages are not so well except Chinese-Simple. If you are interested in it, please loop here. I am very welcomed to help with how to config to run it in GAE.
I plan on making an instant messaging app on Android and iOS, where you can chat to other people with the app, along with some custom features.
I’m going to use the XMPP protocol, and make a custom extension for it. I plan on making a Java application running on Amazon Web Services (AWS) so it's scalable.
After researching server options I’ve decided to use Apache Vysper.
However, I’ve never made a proper Java application before, and have never used XMPP, AWS or Vysper – so I’m rather reliant on good documentation :-)
The Apache Vysper project is very new and so the docs are a bit sparse. I was wondering if I was missing something, should I be using the general MINA docs as well? Are there other resources
elsewhere I don’t know about?
“Apache Vysper can run stand-alone or embedded into another
application.”
To be honest I’m just as lost when it comes to working out what to use to make a Java application anyway. Do you know if the AWS Java SDK has everything I need to make an application to use on AWS? And then is it a simple matter of integrating Vysper into this? Or do I need to make a Java application using something such as the Spring framework?
Thanks for taking the time to help me. If you know anything that could clarify the situation I would really appreciate it :-) --and sorry be being a bit useless, but hey, we've all got to start somewhere right ;)
First of all, as the founder of Vysper I apologize that the documentation is lacking completeness.
To answer your question(s).
Most Java applications bring their own ready-to-go start scripts with them.
Vysper is no exception. You get the pre-packaged download here:
http://mina.apache.org/vysper-project/downloads.html
Ok, before running it, you need to have Java installed, whether you're on your own machine, AWS, a server or a virtual machine anywhere else. Get it from Oracle, or use the package management of your Linux distribution. Make sure that after installing Java, you can execute "java -version" on the command line and you are all set.
Then, unpack the Vysper download, change to the bin/ directory and execute "run.sh" or "run.bat", depending on your OS.
Please note that support for Vysper - besides here on StackOverflow - is available on the MINA user mailing list here:
http://mina.apache.org/vysper-project/mailing_lists.html
I've just started using Google App Engine and I have a few questions about it. I hope you can help me:
Once my Java web application is running on Google App Engine. What if one day I decide to run it on my own server. Which programs/services would I need? Is it difficult to configure?
I have a Javascript code that I would like to store on Google Application Engine, so that external webpages can run it directly. Is it possible? Otherwise could I deploy a Java application on Google App which returns this Javascript code? How could an external site ask on "execution time" for this code and run it?
THANKS!!
AppScale supports Java and allows users to deploy and host their own Google App Engine applications
Of course you can, although GAE is not meant to be used as a CDN.
Have a look to Static Files and Resource Files documentation.
It depends on what services you actually use. Take a look at AppScale, it will facilitate running your application on your own servers. I would also suggest looking at TyphoonAE (Python only), to see another software 'stack' providing similar services.
See the section on static files and resources in the docs.