Use Gae (Google App Engine) Step by step to develop your own blog [1]: Novice on the road

Source: Internet
Author: User
Tags java web
what Gae is.

GAE (Google App Engine) allows us to use Google's machines to build our website, and the basic process of development is similar to that of ordinary Web sites. For our benefit is of course free of charge (of course, the use of CPU storage resources are limited), it is our only want to make a small web site and the shy students of the Gospel (any PHP virtual space will be hundreds of yuan, Java EE more expensive).

Next, learn about GAE based development by developing a simple personal blog on Gae.

what it takes to develop Gae.

1. You want Java or Python, and currently gae only supports both languages. In the next stupid, really play not to Python, the next involved in the development of the language is Java.

2. With Java, which is highly recommended for Eclipse, Gae offers a lot of things to save (for Vi,emacs Daniel or other IDE enthusiasts, some configuration details need to look at the Google Code document).

3. A Google account, in the http://code.google.com/appengine/after landing point "Create New application", according to the instructions to build a application, here need to pay attention to is Application Identifier. It needs to be used in the back development.

To sum up, the following development process requires the Jdk,eclipse,gae plugin (plugin address on this page, http://code.google.com/appengine/docs/java/gettingstarted/installing.html).

a simple project.

After we have installed the Gae plugin, we can build a Hello World project to play.

We can see three more buttons on the Eclipse toolbar.

Click on the first button to create a Gae project.

Since we don't need GWT, don't choose to use Google Web Toolkit.

Here is the directory structure after the construction

The war directory is the structure of our familiar Java Web site.

Next, run the project.

You can see the effect in the browser input http://localhost:8888/.

Of course, we're not just running locally, we're going to be able to upload it to Gae.

We need a little change to upload.

Open the War/web-inf/appengine-web.xml file and add your application Identifier in the middle of the <application></application> . For example, if it is zblog, change it to <application>zblog</application>.

Save the deployment button on the Point toolbar

Enter your username and password for your Google account.

After uploading, open http://zblog.appspot.com/(will zblog replace your own application Identifier, this site is not mine, was robbed t_t), you can see your site.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.