Skip to content

HitFox/foxy_dashboard

Repository files navigation

Foxy Dashboard

Internal TechDev Dashboard

At the moment 2 API end points are provided:

  1. a GitHub Feed for HitFox Tech Team related to Pull Requests and Push Events.
  2. a HackerNews feed collecting new posts from HackerNews site.

Setup

git clone [email protected]:HitFox/foxy_dashboard.git
cd foxy_dashboard
bundle install
rake db:setup

OmniAuth2 with HitFox/Finleap account

In 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

HitFox GitHub Feed

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_USER equal to your git-hub user name
  • GITHUB equal to the github token you just created

HackerNews Feed

Nothing to be done... Out of the Box :-)

Up and Run

Foxy Dashboard uses workers to manage jobs that are pulling information from different APIs. So run:

bundle exec sidekiq

Now that the background processes are ready to be run, start the server:

rails s

Login with your HitFox/Finleap account. Navigate to the end points that at the moment are:

  • api/v1/hit_fox_feeds.json
  • api/v1/hacker_news.json

Best Practice for adding new features/end points

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 !!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published