Setup the users and passwords listed in database.yml
.
Currently we support 5 different login methods: GitHub
, LinkedIn
, Twitter
, FaceBook
, and Google+
. In production OAuth applications need to be created and set up to point at the production URL of the application.
If we don't want to support these five logins, we need to remove them from actions/auth.go
and templates/_nav_bar.html
.
GITHUB_KEY
GITHUB_SECRET
LINKEDIN_KEY
LINKEDIN_SECRET
TWITTER_KEY
TWITTER_SECRET
FACEBOOK_KEY
FACEBOOK_SECRET
GPLUS_KEY
GPLUS_SECRET
Here is a development key for GitHub. It only works on 127.0.0.1
.
GITHUB_KEY="308545eb0909a67d1581"
GITHUB_SECRET="c8ed04e6dcb9a37dd3711de0991e2fc51e04303e"
The ENV var GITHUB_WEBHOOK_SECRET
needs to be set up with the production secret. This doesn't need to be set up in development.
All that is left is to have access to the github.com/gopheracademy/training
repo locally from the web server. The repo should be set up at $GOPATH/src/github.com/gopheracademy/training
.
The application needs both go
and git
tooling in order to run properly.