Checkout branches to view particular steps of this sample application.
1-hello-world2-sql2-datastore3-binary-data4-authentication5-logging6-task-queue7-compute-engine
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:
- http://localhost:3000/auth/google_oauth2/callback
- http:///auth/google_oauth2/callback
-
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
$ bundle install
$ bundle exec rspec spec/
$ gcloud app deploy worker.yaml
$ gcloud app deploy app.yaml
- See CONTRIBUTING.md
- See LICENSE