Leanpub Header

Skip to main content

Getting Started with Go on IBM Cloud

Learn how to get started using Go (Golang) on the IBM Cloud to deploy to IBM Cloud Foundry and IBM Cloud Functions.

Minimum price

$13.00

$16.00

You pay

$16.00

Author earns

$12.80
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
62
Pages
About

About

About the Book

The goal of this book is to provide an introduction to using the Go programming language (Golang) on the IBM Cloud. The same example application—a TodoBackend—is built using two different IBM Cloud offerings—IBM Cloud Foundry and IBM Cloud Functions—to see the differences between the two deployment options. IBM Cloud Foundry is IBM's offering of Cloud Foundry, an open source cloud application platform. IBM Cloud Functions is IBM's offering of Apache OpenWhisk, an open source, distributed serverless platform that executes functions in response to events at any scale.

Author

About the Author

Matthew Rankin

Contents

Table of Contents

IIntroduction

1Introduction to Cloud Computing

  1. 1.1What is Cloud Computing?
  2. 1.2Why Deploy in the Cloud?
  3. 1.3How Much Control?
  4. 1.4Everything Old is New Again

2Introducing the IBM Cloud

  1. 2.1IBM Cloud Overview
  2. 2.2IBM Cloud Compute & Cloud Offerings
  3. 2.3IBM Cloud Database & Storage Offerings
  4. 2.4IBM Cloud Offerings Used in This Book
  5. 2.5Equivalent Cloud Provider Offerings

3Get Going in Go

  1. 3.1Resources for Getting Started with Go
  2. 3.2Go for IBM Cloud Foundry
  3. 3.3Go for IBM Cloud Functions

4Project Application

  1. 4.1API
  2. 4.2Tests
  3. 4.3Database
  4. 4.4Authentication and Authorization
  5. IIIBM Cloud Foundry

5Cloud Foundry Setup

  1. 5.1Initial Setup
  2. 5.2Application Architecture
  3. 5.3Setup Routes
  4. 5.4Setup Makefile
  5. 5.5First Deploy
  6. 5.6Cloudant Setup
  7. 5.7Backend Todo Tests

6Pre-Requisites

  1. 6.1Respond to GET
  2. 6.2Respond to POST
  3. 6.3Respond to DELETE
  4. 6.4Respond to GET with Empty Array After DELETE

7Storing New Todos

  1. 7.1Add a New Todo
  2. 7.2Initialize New Todos as Not Complete
  3. 7.3Provide URL for New Todos
  4. 7.4New Todo URL Returns a Todo

8Working with an Existing Todo

  1. 8.1Navigate from List of Todos to an Individual Todo
  2. 8.2Change a Todo’s Title
  3. 8.3Toggle a Todo’s Complete Status
  4. 8.4Persist Changes to a Todo
  5. 8.5Delete a Todo

9Tracking a Todo’s Order

  1. 9.1Include Order Field in Todo
  2. 9.2Change a Todo’s Order
  3. 9.3Persist Changes to a Todo’s Order

10Conclusion

  1. IIIIBM Cloud Functions

11Cloud Functions Setup

  1. 11.1Initial Setup
  2. 11.2Application Architecture
  3. 11.3Setup Routes
  4. 11.4Setup Makefile
  5. 11.5First Deploy
  6. 11.6Backend Todo Tests

12Pre-Requisites

  1. 12.1Respond to GET
  2. 12.2Respond to POST
  3. 12.3Respond to DELETE
  4. 12.4Respond to GET with Empty Array After DELETE

13Storing New Todos

  1. 13.1Add a New Todo
  2. 13.2Initialize New Todos as Not Complete
  3. 13.3Provide URL for New Todos
  4. 13.4New Todo URL Returns a Todo

14Working with an Existing Todo

  1. 14.1Navigate from List of Todos to an Individual Todo
  2. 14.2Change a Todo’s Title
  3. 14.3Toggle a Todo’s Complete Status
  4. 14.4Persist Changes to a Todo
  5. 14.5Delete a Todo

15Tracking a Todo’s Order

  1. 15.1Include Order Field in Todo
  2. 15.2Change a Todo’s Order
  3. 15.3Persist Changes to a Todo’s Order

16Conclusion

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub