Skip to content

Commit

Permalink
Use API key from ENV or config
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzollinhofer committed May 22, 2016
1 parent aebac68 commit 8410d1e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Ignore bundler config.
/.bundle

# Ignore env load files
/config/env.*

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@
## Teachy

Track class assigments for teachers and students.

## Getting started

```
Clone the repo
bundle
rails s
```

### OAuth Support
Current the app supports google oauth. Setup your environment by getting a google api key for the app and
setting it in `ENV['google-api-key']` either directly or setting it in `config/env.<environment>.yml`
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#Google omniauth config
config.omniauth :google_oauth2,
'1051677852822-llvi1ide2fm54j33stg09mbrsnalhutj.apps.googleusercontent.com',
'syTTOf4wsCTc-J33W-iJL1mb',
ENV['google-api-key'],
{ }

# ==> Mailer Configuration
Expand Down

0 comments on commit 8410d1e

Please sign in to comment.