Join Joseph Lowery for an in-depth discussion in this video Deploying an example app, part of Up and Running with Google Cloud Platform (2013).
Google Cloud platform comes with a couple of example apps that you can quickly deploy to get a better sense of the service. Let's set one up so, you can really see what's going on. Well, I've gone to cloud.google.com/console which shows me my projects. Now, from here, I'll click on my project name, and that will take me to the Google Cloud Console for my particular project. Once you do that and you're on this page, if you don't see the two example apps up top, click Get started with sample applications to open those up. We're going to deploy the Photofeed Java app.
If you don't see it, click the Next or Previous arrows that you see on either side of the screen. But once you have it, click Deploy. You will get a message in yellow as it's installing. If I quickly click Details I can track what's actually happening. Once it's done, the message will change to successfully deployed the application. And there is a view app link, let's click that. Before you can view the app, you'll need to sign in with your Google account. At this point, anyone with a Google account could view your app online if they knew the URL. Note that the messaging that you see over on the left repeatedly uses my project name, lyndacloud001.
And that the project owners, that's me, will be able to see the emil address of any visitors. Okay. So, we're going to enter in my password and a quick sign in. Now, sometimes this can take a moment or two to set up. And you'll get a message that says the data store index is not yet ready to serve, please wait a minute and try to reload. The app is pretty bare bones, but it shows my Google account name and email address, as well as an avatar. There is the Photofeed title and a Choose An Image button, let's click that to load an image.
Now, you can see a bit more of an interface. There is a file field a uploaded file, as well as say a text area for comments. First, I will click Choose file and navigate to my Exercise Files folder, which is stored on my desktop. Then, I'll drill down to chapter two, 02_02, and open up the Images folder. There are a couple of public domain images there, both provided by NASA, courtesy of the Hubble Space Telescope. Click on the one that starts hs 1998, and then click open.
Next, add in a bit of a description. This happens to be Saturn's Aurora, and I'll give a little credit where credit is due, and then click Post. If you look in the lower left, you can quickly see a uploading and then there's my image. I'll scroll down a little bit, and you can see the comment. Let's bring in a second image.
Again, I'll click Choose File and now I'll click hs-2013. Click Open. And this is the horse head nebula, also by NASA's bubble space telescope. Click Post when you're ready and I can see that it's uploading in the lower left, and there's my horse head. Now, when the image is loaded it comes in sequentially, newer images are posted up top and there's the first image that I put in.
Now, below the second image I loaded, I have my comment and room for others. Let me go ahead and enter a comment on that. Just enter coolness and click Post Comment. And now, when I scroll back down, there's the horsehead nebula, my original description, and a comment. With our app up and running now, we're ready to see what's going on in the admin console. And that's up next.
- Why Google Cloud Platform?
- Deploying an app with Google App Engine
- Activating and working with Google Cloud Storage
- Loading, querying, and exporting data with BigQuery
- Working with Cloud Storage buckets
- Managing cloud-based private networks
- Importing and exporting data
- Scheduling backups
- Working with Google Datastore