Repo to authenticate a user and configure basic useful statistics from GitHub
- Run the web project
- Open localhost:8080
- If you don't have the privileges, the GitHub OAuth process will start
- Once the authorization is granted, you can go to the /repos page to persist the repos you want to monitor
- When you are ready, just click on Send Notification
$ make build-bin
$ ./bin/gh_statistics
GH_CLIENT_ID
GH_CLIENT_SECRET
GH_AUTHORIZE_URL
GH_ACCESS_TOKEN_URL
GH_API_USER_URL
GH_API_REPO_URL
GH_HTML_BASE_URL
GH_AUTH_CALLBACK_URL
SLACK_PRIVATE_WEBHOOK_URL
SLACK_BACKEND_WEBHOOK_URL
SLACK_WEBHOOK_USE_PRIVATE
DATABASE_URL
PORT
CRON_TOKEN
docker run --name gh_stats_db -e POSTGRES_PASSWORD=admin -p 5432:5432 -d postgres
Command | Description |
---|---|
$ heroku apps:create <APP_NAME> |
Creates a new application in heroku |
$ heroku config:set <VAR_NAME>=<VAR_VALUE>> |
Creates a new env var |
$ heroku config |
Lists configured env vars |
$ heroku addons:create heroku-postgresql:<dbName> |
Create a new PostgresDB |
$ heroku pg:psql |
Allows open sql command line |
$ heroku logs --tail |
Display current process logs |
$ heroku local [web] |
Run the web project in the local machine |