GithubHelp home page GithubHelp logo

classicvalues / podcast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/podcast

1.0 1.0 0.0 401.99 MB

The Google Cloud Platform Podcast

Home Page: https://www.gcppodcast.com

License: Apache License 2.0

Makefile 1.03% Shell 3.23% HTML 51.64% JavaScript 13.29% CSS 4.26% Dockerfile 1.57% Python 3.40% SCSS 21.59%

podcast's Introduction

GCP Podcast Website

This repo contains all the code and contents behind gcppodcast.com.

The first episode explains the architecture, you can listen to it here.

gcppodcast.com screenshot

Contents of the repository

You will find three directories in the repository: dev, ga_handler, and site.

  • dev: dev tools
  • ga_handler: an App Engine module written in Python used to send events to Google Analytics
  • site: the hugo structure that generates the static website

dev: website development

This directory contains all the tooling we use to build/deploy the podcast. In particular it has a Dockerfile that defines an environment with all the tools we use to generate the website and tag mp3 files.

You can build this image using the Makefile on the root of this repository. You will be able to push it or pull it from Google Container Registry too, but you might need to modify the TAG variable to match a project you have access to.

Finally, once you've built the image, you should be able to create a new interactive shell by running make shell or make attach if you want to attach to an existing one.

site: the hugo structure that generates the static website

This directory contains all the resources that we use to generate the podcast website.

You can use the Makefile provided in the directory to:

  • Run Interactive Hugo Server (port 1313): make server
  • Sassify->CCS Assets: make assets-update - does production css generation, compressed and everything.
  • Deploy the Project to App Engine:
    • make deploy - This will not make the version default. Useful if you just want to test/share a version live.
    • make deploy-default - This will replace the default version (but the old version is kept, in case)

ga_handler: adding Google Analytics to Google Cloud Storage

This directory contains an App Engine service that provides a way to access the mp3 files stored in Google Cloud Storage while logging those accesses with Google Analytics.

The following commands can be run from inside the ga_handler directory:

  • Run full code lint and tests: nox
  • Start Local Episode Redirect Module: python main.py
  • Deploy Episode Redirect Module: gcloud app deploy

Environment variables must be set for STORAGE_BUCKET and GA_TRACKING_ID.

Disclaimer

This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.

podcast's People

Contributors

traeregan avatar markmandel avatar markmirch avatar campoy avatar dinagraves avatar diegocouto avatar patrickcmbooth avatar broady avatar

Stargazers

Classic Values avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.