- Twitter App (with only read-only permissions and no login privileges)
- Docker
- CONSUMER_KEY: Twitter's consumer key
- CONSUMER_SECRET: Twitter's consumer secret
- CALLBACK_URL: Twitter's callback URL
- PORT: Port to use for the web server
- HOMEPAGE: URL to redirect to (e.g., when Twitter login successful)
- HOST: mostly for CSRF middleware
- PROTOCOL: mostly for CSRF middleware
- CORS_DOMAIN?: Domain to allow CORS (can useful for development)
- NEW_RELIC_LICENSE_KEY?: NewRelic license key
docker build --file Dockerfile --tag tweeters-stats-golang .
docker run -it --rm tweeters-stats-golang ./test
docker run -it --rm --env-file .env -v $PWD:/go/src/github.com/Ahimta/tweeters-stats-golang tweeters-stats-golang dep ensure
docker run -it --rm --env-file .env -p 8080:8080 -v $PWD:/go/src/github.com/Ahimta/tweeters-stats-golang tweeters-stats-golang fresh
docker run -it --rm --env-file .env -p 8080:8080 tweeters-stats-golang
sh deploy.sh
/
: SPA frontend servingindex.html
(you have to provide your own)/login/twitter
: Twitter's OAuth1 login/oauth/twitter/callback
: Twitter's OAuth1 login callback/tweeters-stats
: Tweeter's stats for authenticated Twitter account
- Editior: VS Code (using
Docker
andGo
plugins) - OS: Ubuntu
GNU General Public License v3.0