Skip to content

Latest commit

 

History

History
 
 

README.md

Bookshelf

Checkout branches to view particular steps of this sample application.

  • 1-hello-world
  • 2-sql
  • 2-datastore
  • 3-binary-data
  • 4-authentication
  • 5-logging
  • 6-task-queue
  • 7-compute-engine

User Authentication using Google OAuth

Run

To run the application, first install dependencies:

$ bundle install

To setup the database for local development, copy the sample database.yml file:

$ cp config/database.example.yml config/database.yml
  • In the Developers Console, go to "APIs & auth" -> "Credentials"

  • "Add credentials" then "OAuth 2.0 client ID"

  • Select "Web application"

  • Follow instructions to setup consent screen if prompted

  • Authorized redirect URIs:

  • Copy your client id and secret for below:

  • In the Developers Console, go to "APIs & auth" -> "APIs"

  • "Google+ API"

  • Enable

Copy settings.example.yml to settings.yml and add your client_id and client_secret from your project's web application credentials (console).

Then, run the Rails web server:

$ rails server

To run the tests

$ bundle install
$ bundle exec rspec spec/

To deploy to App Engine Managed VMs

$ gcloud app deploy worker.yaml
$ gcloud app deploy app.yaml

Contributing changes

Licensing