Coder Social home page Coder Social logo

cicd's Introduction

CLOUD CATS

Greenkeeper badge CircleCI badge Known Vulnerabilities

CloudCats is an example of using node.js and various Google Cloud APIs and services to solve the greatest question of our time: do developers prefer dogs or cats.

CATS IN THE CLOUD

This is an adaptation of the awwvision, which uses Kubernetes to do something similar. Credit to Jon Parrot for the idea.

How it works

Cloud Cats queries for a list of images from the front page of r/aww. Each of those images is saved into Google Cloud Storage, and then analyzed using the Google Cloud Vision API.

Architectural diagram

Cloud Cats uses a few Google Cloud APIs and Services.

  • Users visit the front application, which is running in an App Engine module.
  • When you're ready to do a run, the {+} will call an endpoint on the [worker][/worker] module.
  • The worker will invoke the Reddit JSON API to get a list of images from r/aww.
  • Images are saved to Google Cloud Storage.
  • The Cloud Vision API analyzes the image, and tags it as dog or cat or other.
  • The result is placed in a Google Cloud Pub/Sub topic.
  • The front end App Engine Module subscribes to results from the topic.
  • Results are streamed to the user using PubNub.

Deployment

This code is built as a demo for running Node.js on Google Cloud, but you can run it anywhere that node.js works.

  1. Create a project in the Google Cloud Platform Console.
  2. Enable billing for your project.
  3. Enable Storage, PubSub, and Cloud Vision APIs in the API Manager.
  4. Install the Google Cloud SDK.
  5. Deploy with gcloud preview app deploy web/app.yaml worker/app.yaml --project <YOUR PROJECT>

License

MIT License

Questions?

Feel free to submit an issue on the repository, or find me at @JustinBeckwith

cicd's People

Contributors

christophersanson avatar justinbeckwith avatar r2d4 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

r2d4

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.