Developing in the Google Cloud

Tutorials, tips, tricks, and news about Google App Engine

Archive for the ‘netbeans’ tag

Top 5 DZone Google App Engine Articles

4 comments

Many of you are familiar with DZone. If not, it’s a website dedicated to community-voted articles related to developing software. It’s a fantastic place to read up on the latest and greatest techniques to help you be a better developer.

Below is a compiled list of the top 5 Google App Engine articles I’ve found on DZone. If you’re interested in developing in the Google cloud, take a look at these links.

A question for users of DZone: I can’t seem to find the embed code that will let me paste the DZone vote buttons for each of these articles. I’d much rather do it that way than with hyperlinks alone. Can anyone help? Thanks in advance!

1. Free Google App Engine + Java E-Book

http://www.dzone.com/links/rss/free_google_app_engine_java_book.html

2. Full Text Search Using Google App Engine

http://www.dzone.com/links/google_app_engine_full_text_search_from_app_engin.html

3. Java Libraries for Google App Engine

http://www.dzone.com/links/java_libraries_and_frameworks_supported_by_google.html

4. From NetBeans to Google App Engine In 2 Minutes (Video)

http://www.dzone.com/links/video_from_netbeans_to_google_app_engine_in_2_min.html

5. Running PHP on Google App Engine

http://www.dzone.com/links/running_php_on_google_app_engine.html

That’s it! Do you have any helpful Google App Engine links you’d like to share? Please post them in the comments!

Share

Getting Started With Google App Engine and NetBeans Part 2

33 comments

Expect a short post. Deploying an app on Google App Engine is one of the easiest things I’ve ever done. If you haven’t done so, please start with part 1 of this tutorial in order to be at the point we are now.

To begin, let’s open up the sample Guestbook app that comes included with the Google App Engine package.

Important note: During my deployment I ran into a snag because I had used a space in the folder name for my project. If you cannot deploy your app, check this first.

Set Your Application Name

Your application name is the name you chose for your application when you created your account at the Google App Engine website. To set the application name, follow these instructions:

  1. Start the NetBeans IDE.
  2. Open the Guestbook sample app.
  3. Open the ./WEB-INF/appengine-web.xml file.
  4. Set the application name to match the application name you set up at Google App Engine.

Deploy Your App

  1. Right-click on your project in the Projects list
  2. Select “Deploy To Google App Engine”
  3. Fill in your Google Account credentials when prompted.

That’s it! At this point the code will compile and deploy. Once it’s done, open Firefox and browse to your app’s URL. It should be in perfect working order and ready to roll.

I hope that you’ve found this tutorial useful. If you have any suggestions or questions, please feel free to post them in the comments below!

Share

Written by rocky1138

January 12th, 2010 at 3:39 am

Getting Started With Google App Engine and NetBeans Part 1

57 comments

Note: The second part of this tutorial has been posted here. If you’ve already completed part 1 and are ready to move on, check out part 2 now.

Getting started with Google App Engine development is easy and free. For the purposes of this tutorial, I tend to focus on developing GAE apps from within the Linux platform. However, since both Netbeans and the Google App Engine SDK are multiplatform, these instructions will be pretty much the same on any of the major operating systems (Linux, Mac, or Windows).

Let’s get started.

Sign up for Google App Engine

First things first. Navigate to http://appengine.google.com and sign up to enable your Google Account for use with Google App Engine. In order to activate your account, you will need a phone that supports SMS or text messaging. Thankfully this is not hard to find these days as every major phone for the last bajillion years has this feature. :)

Create Your App

After activating your account, create your application. Once you’ve got your application name and URL solved, write them down or store the information in a text file. It’s amazing how many times I had to look up what domain Google uses for their cloud apps before they’re live. I’ve been working with Windows Azure and their appname.cloudapp.net setup for so long that I always want to type that instead. Google App Engine apps are located at appname.appspot.com.

Download the Google App Engine SDK

Download and unzip the Google App Engine SDK to a folder on your hard drive. For my projects I use the Java SDK but feel free to download the Python version if that’s your thing.

Install the NetBeans Integrated Development Environment

If you haven’t already, install the NetBeans IDE. This is the program you’ll use to manage your GAE application projects and write source code. Consequently, you are also able to publish GAE apps from within the IDE.

To install NetBeans on Mandriva Linux, type urpmi netbeans in the command-line as the root user. For Debian-based Linux such as Ubuntu, try sudo apt-get netbeans. For other operating systems, try downloading NetBeans manually from the NetBeans homepage.

If you’ve never used NetBeans before, prepare to be blown away. I love this IDE. It runs on all major platforms and has tons of plugins to help brighten your day. In fact, plugins are what we’ll be installing next.

Install the Google App Engine NetBeans Plugin

To install the Google App Engine NetBeans Plugin, follow these instructions:

  1. Start NetBeans
  2. Make note of NetBeans version number
  3. Click Tools -> Plugins
  4. Select the Settings tab
  5. Click the Add button
  6. Type “App Engine” (without the quotes) into the Name field
  7. If using NetBeans 6.7 paste http://kenai.com/projects/nbappengine/downloads/download/1.0_NetBeans671/updates.xml into the URL field
  8. If using NetBeans 6.8 paste http://kenai.com/projects/nbappengine/downloads/download/Latest_NetBeans68/updates.xml into the URL field
  9. If using NetBeans 6.9 paste
    http://kenai.com/downloads/nbappengine/NetBeans69/updates.xml into the URL field
  10. Click the OK button
  11. Click on Available Plugins
  12. Select all Google App Engine plugins
  13. If you’re using NetBeans 6.9 you must also install the  Java Web Applications plugin for NetBeans. Not sure why, but it will not work without it installed (thanks to the user comments below for this one!)
  14. Click the Install button

Installing the Google App Engine Service in NetBeans

To install the Google App Engine service in NetBeans, follow these instructions:

  1. Start NetBeans
  2. Click on the Services tab next to Projects and Files
  3. Right-click on Servers and click Add
  4. Select Google App Engine and Click Next
  5. Select the location you unzipped the Google App Engine SDK
  6. Click Next
  7. Unless you have another service running on port 8080 and port 8765 leave the default port values
  8. Click Finish

Run the Guestbook Sample App

We are almost done! To test the install and ensure everything runs properly, let’s try running the included Guestbook sample app.

  1. Start NetBeans
  2. Click File -> New Project
  3. Under Samples, select Google App Engine -> Guestbook
  4. Click Next
  5. Enter the location in which you’d like to store this project
  6. Click Finish
  7. Click the Run button (looks like a green Play button in the toolbar)

At this point you should have a fully-functioning app loaded in your default browser, showing you a guestbook. Congratulations! If you’ve run into any errors along the way and cannot solve them on your own, please leave a comment below.

The next article in this series will focus on deploying your shiny new app to the Google App Engine service.

Share

Written by rocky1138

January 5th, 2010 at 4:12 am