GithubHelp home page GithubHelp logo

jeongl / redox-code-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 431 KB

Code challenge application

Home Page: http://jlim.site/lodash-pull-requests/

HTML 2.36% JavaScript 97.64%
github-api

redox-code-challenge's Introduction

redox-code-challenge

This application fetches all pull requests (open & closed) from the lodash respository, and stores all of them in local server memory. It does not schedule updates to be pulled from the repo, so the stored PRs reflect what's current at the time of server startup.

This route will fetch all of the PRs - http://jlim.site/fetchAllPullRequests

Github has an endpoint to fetch PRs, but for a large list it is paginated and limited to 100 results per. The source code here just concats the queries until there is none left - https://github.com/jeongl/redox-code-challenge/blob/master/src/api/githubApi.js

The front end is fairly simple with a filter to show closed or open PRs.

Stuff used to make this:

  • react
  • recompose - HOC helpers for react.
  • lodash
  • express
  • JSON-tree - To display the PR list in json format, with interactivity.

Usage instructions (local)

  1. Clone the repo, run yarn to install all the packages.
  2. Create a .env file with your github credentials and store it in the root of the project. This will be used to call the github API using your account details. Here a reference to the section of code - https://github.com/jeongl/redox-code-challenge/blob/master/src/api/githubApi.js#L15
  • An example .env looks like this:
  USERNAME=jeongl
  PASSWORD=ssshhhh
  1. Start the server by running yarn start-server. This will start the server, pull PRs from lodash and store it in memory.
  2. Start the front end application by running yarn start. After webpack builds the bundle visit localhost:8080

redox-code-challenge's People

Contributors

jeolim avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.