The Google AppEngine development server simulates Google's backend database with an embedded database. It creates a file on you local disk that you can delete to clear the DB.
Is there a tool that allows to browse and edit this data, similar to the Data Viewer that you get for deployed applications?
Clarification: I am asking about the Java toolkit, not the Python one.
Finally, data viewer comes with Google App Engine Java SDK version 1.2.2.
It can be accessed at:
http://localhost:8080/_ah/admin
or
http://localhost:8888/_ah/admin
The same link as in Python version.
On my system (sdk 1.2.8 I think) the dev server runs on port 8888. So the data viewer is at http://localhost:8888/_ah/admin
You can find it at http://localhost:8080/_ah/admin. Looks bit different, but provides the same functionality (apart of some bugs).
But in the light of OP question amendment this answer is not relevant anymore.
Related
Can anybody point me in the right direction for instructions on setting up the following items on a Windows development PC?
Setup a MySQL database.
Setup an Apache webserver, a framework plus an IDE so that I can write RESTful APIs using Java and JSON.
I am using this to write a native Android and IOS mobile app that will store and retrieve data from the MySql database using the RESTful APIs on the Apache web server.
I have searched through several tech books, Google and Stack Overflow but cannot find anything that contains the above specific items. Within Stack Overflow, the following two links proved useful but do not give the specific items that I need. Android - Ruby on Rails - MySQL AND Best practice selecting database for mobile app
If you are planning to develop RESTful APIs using a Windows development PC, you could consider some of the available software bundles like XAMPP (https://www.apachefriends.org/index.html), which include an Apache distribution containing MariaDB (successor of MySQL, you can work with MariaDB as you would in MySQL), PHP (server-side language), and Perl (not neccesary) in a single Windows installer. Then, once you install it, you will have a complete web development environment up and running.
Then, considering that you develop your APIs using PHP as the server-side programming language (which I strongly recommend you as it is the most widely used language for this purpose), several additional decisions have to be taken, in terms of deciding about:
The IDE to develop in. When working with PHP, I recommend you PHPStorm IDE (https://www.jetbrains.com/phpstorm). The best in my humble opinion. However, quite complex and not very easy, but it completely worths learning.
The PHP framework. Unless you want to manually program your APIs (completely madness), you will have to use one of the many available PHP frameworks. In this case, I recommend you Laravel Framework (http://laravel.com). As far I have seen and worked, the best present and future option concerning PHP development. You could then install some RESTful API specific package in top of Laravel to speed up the development, like Dingo/API (https://github.com/dingo/api).
I insist this is just my recommendation, but you have to know that behind all that languages and frameworks there is a quite long and hard learning curve.
Good luck anyway!
1) To install MySQL on Windows refer to this official MySQL guide.
You will need to download and then extract the zip file (I would recommend the Community Edition). You will have all the details you need in the link above. Note that the .msi installer for Windows is no longer available for newer versions of MySQL.
2) Since you are going to use Java, you do not need the Apache web server (httpd) but you need Apache Tomcat as a servlet container (or other alternatives like Glassfish, JBoss as full Java EE application servers).
For building RESTful Web APIs in Java, Jersey is very good option (https://jersey.java.net).
Finally, as an IDE you can use anything, the most popular being Eclipse, NetBeans and IntelliJ IDEA.
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.
I have been googling all day for a good tutorial to help me start with a basic setup for a Java based web application on Amazon Web Services. The popular ones are outdated and the new ones are unclear. Here are a few doubts I have. Primarily I'm looking for a good "Getting started" tutorial.
What to choose to create my custom AMI and what is the best way to build it?
How to configure an EBS volume to store MySQL data and web application project files and how to deploy them from eclipse?
Is there any best practice for setting up an instance for persistence? Specifically, should I use an EBS-backed AMI or use an instance-store AMI and attach an EBS volume to store persistent data?
Please note that I'm looking for the most basic setup as I'm still in development stage but I should be able to scale the system without much trouble.
Any help would be appreciated.
i would suggest to try out grails, it is java (groovy) based, open source, and there are some tools to push your app to the cloud backed by amazon (check out http://www.cloudfoundry.com/ from spring) our to appengine.
http://grails.org
I really hope would know how to do this cause I'm a total newbie to Blackberry development.
Basically, I was asked to write a brief report on how a blackberry would access a DB server like Oracle, and I don't know how a blackberry works well enough to figure this out. I tried searches for blackberry DB on Google and I always end up with blackberry viewer plus app for $39.99.. which is really annoying.
If anyone has done this or now how to point me to any good articles or tutorials or some code that explains how this would work that'd be awesome!!
In case you need access to an application which backend runs on Oracle, the best thing you can do is access your database through an Application Server (Java, PHP, .NET).
This way, you communicate with your Database through a common application level protocol like HTTP, SOAP/HTTP, or whatever you can use natively on your Blackberry device. You don't need to provide your device with direct communication with the Oracle database which not only is easier but more secure.
Since you code your Blackberry apps in Java, you can be positive that you will have plenty support to do HTTP request and process its responses in your application.
Your Application will communicate with Oracle with its native protocol probably through a driver (JDBC, ADO.NET, PHP's oci wrapper) depending on the technology you pick.
Everything Pablo said and some links ->
blackberry.com/eng/developers - Start to understand Blackberry Development
J2EE on Blackberry - Beginning J2ee on Blackberry
http://wbw-adc.oracle.com/technology/pub/articles/bors-adfmobile.html - Really good overview By Oracle on them and Blackberry.
We develop Java Web-aps (Websphere, DB2) which display graphical and databased information. We would also like to offer the same application offline (distribution via CD/DVD) with online data-update. We have tried a number of alternatives in the past, but nothing has been really stable. What are the new best practices to take a Web ap plus data (in a small database) offline?
I don't know how well it works with the CD/DVD distribution front, but the first thing that comes to mind is Gears. On the .NET side of the fence there's Silverlight 2. Then there's the Mozilla Prism project, although I don't know how far advanced that is.
These are all designed for not just offline access, but mixed offline/online, talking to a server when it's available and working locally when necessary.
I'd suggest using Apache Derby as the database (also available as Sun's Java DB, and possibly still IBM Cloudscape (does that still have DB2 compatibility in place?)).
I'm sure there's plenty of Web servers/Servlet containers about. Apache Tomcat is the obvious one. An alternative approach would be to use an embedded native browser within a single Java process. That approach should be relatively hassle free for users and tech support, and you can just use WebStart to install and update.
If you're using EJBs and other nonsense, then there are similar freebies about. I understand Sun Glassfish is nice and fast starting.
You could create an image of your server as a VMware instance and distribute it with a copy of VMware player (licensing allowing of course). Personally I'd build it on top of a Linux distribution like CentOS5.
You can bundle a JRE along with JETTY server and use a different database e.g HSQLDB (that you can bundle inside the webapp itself).
If you are using an ORM tool to connect to database, you might not have to make many code changes for this.
A lot of Application server distribute their admin consoles like this.For e.g Weblogic admin console runs offline (it uses internal ldap server for its database)
Also as far as Google gears is concerned, they are also pretty much doing the same thing.
They have a server that is bundled along with SQLDB and they allow to synchronize the data between online offline app.
You can sync the data too (use webservices in the online app) and talk over https from the offline app to sync the data, if you need the sync feature.
Also you can check this link
http://developers.sun.com/learning/javaoneonline/2007/pdf/TS-69700.pdf