Hosting a static application using Google Cloud Storage

Google Storage offers a way of hosting static web applications using buckets. All client-side technologies (HTML, CSS, and JavaScript) can be hosted in a bucket. This option is very inexpensive to host and can scale to a great extent. The costs incurred will be on the assets stored, outbound network traffic and retrieval from storage. We'll use Hugo (https://gohugo.io), a static website generator and host the generated code in a storage bucket. In addition to hosting a static website, the static contents (CSS, JavaScript, and images) of a dynamic website hosted on Google Storage is also a widely accepted use case.

Get Google Cloud Platform Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.