Internal TechDev Dashboard
At the moment 2 API end points are provided:
- a GitHub Feed for HitFox Tech Team related to Pull Requests and Push Events.
- a HackerNews feed collecting new posts from HackerNews site.
git clone git@github.com:HitFox/foxy_dashboard.git
cd foxy_dashboard
bundle install
rake db:setupIn order to be able to access the dashboard you need to authenticate through Google OmniAuth2 protocol. Please follow read best practices on OmmiAuth2 about how to get credential from the google developer console.
Now add a .env file to root directory if you already don't have one and set the the credential just obtained as defined in the best practices. In particular set GOOGLE_APP_ID, GOOGLE_SECRET and DEVISE_SECRET and GoogleRedirect
You must provide a general access token in order to be able to consume the Github API. If you don't already have one please generate it.
Now go to your .env file and set the following 2 constants:
GITHUB_USERequal to your git-hub user nameGITHUBequal to the github token you just created
Nothing to be done... Out of the Box :-)
Foxy Dashboard uses workers to manage jobs that are pulling information from different APIs. So run:
bundle exec sidekiqNow that the background processes are ready to be run, start the server:
rails sLogin with your HitFox/Finleap account. Navigate to the end points that at the moment are:
api/v1/hit_fox_feeds.jsonapi/v1/hacker_news.json
If you want to add a new feature please add it under app/features and the relative worker ( if there is one ) under app/workers. Business logic should stay in app/models and the controller in app/controller
Have Fun !!!