Git Product home page Git Product logo

vision-how-happy-python's Introduction

How Happy

How Happy is a sample application demonstrating usage of Google App Engine, Google Cloud Vision, and the Google+ API. It accesses the current user's and the user's friends' Google+ profile photos, then uses Cloud Vision to analyze how happy people in the photos are.

See our other Google Cloud Platform github repos for sample applications and scaffolding for other frameworks and use cases.

Run Locally

  1. Clone this repo.

    git clone https://github.com/GoogleCloudPlatform/how-happy.git
    
  2. Use the Cloud Developer Console to create a project/app id. (App id and project id are identical)

  3. Enable the Cloud Vision and Google+ APIs through the Cloud Developer Console API Manager at https://console.cloud.google.com/apis/library?project=your-app-id

  4. Create OAuth2.0 credentials for your application to use when contacting the Google+ API at https://console.cloud.google.com/apis/credentials?project=your-app-id . Include the following "Authorized redirect URIs":

    http://localhost:8080/oauth2callback
    http://your-app-id.appspot.com/oauth2callback
    

Once created, download the JSON credentials into how-happy/app/client_secrets.json

  1. Install and setup the Google Cloud SDK.

  2. Run this project locally from the command line.

    dev_appserver.py how-happy/
    
  3. Visit the application at http://localhost:8080.

Deploying

  1. Use gcloud to deploy your app.

    gcloud app deploy how-happy/app.yaml
    
  2. Congratulations! Your application is now live at your-app-id.appspot.com

Contributing changes

Licensing

vision-how-happy-python's People

Contributors

engelke avatar pfritzsche avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.