Skip to content

mkora/GitHub-profile

Repository files navigation

GitHub User Numbers

Node.js, Express, React, Material-UI, Mocha

Overview

A tool for visualization of GitHub user profile statistics

Notes

See Me

My Stats for GitHub

Quick Start

  1. Install dependencies
npm i && cd src/react && npm i
  1. Obtain a GitHub Access Token
  1. Run the local application
  • Add the GitHub Access Token to src/config/development.json

  • Boot from the top-level directory (the server and the client)

    npm start
    
  • Visit http://localhost:3000

  1. Run the debug server (uses nodemon)
npm run debug-server
  1. Other scripts
npm run server
npm run client
  1. Tests
npm test
  • Test coverage is generated by Istanbul
  1. Note to change default proxy value (http://localhost:3030) modify src/react/package.json

  2. Run the production application

  • Obtain a GitHub Access Token and add it to src/config/production.json

  • Update proxy in src/react/package.json if needed

  • Run the app

    export NODE_ENV=production
    cd src/react/ && npm build && cd ../..
    NODE_ENV=production npm start
    

API Endpoints

Note: Use GET method to retrieve data

Note: For a local copy browse to http://localhost:3030/api/

  • Call user/:username to GitHub user profile info

    For example, /api/user/mkora

  • Call clear/:username to clear user profile info from the cache

    For example, /api/clear/mkora

  • Call /api/limit to get rate limit for the obtained API key

    For example, /api/limit

About

Visualizing a GitHub user profile information

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages