Giter Club home page Giter Club logo

gitproject's Introduction

heroku link: https://flask-git-test-app.herokuapp.com/
Enter your Git Repository Link and,
  My output would be:
  - Total number of open issues
  - Number of open issues that were opened in the last 24 hours
  - Number of open issues that were opened more than 24 hours ago but less than 7 days ago
  - Number of open issues that were opened more than 7 days ago.
  its a easy one when you know about git hub api's
  there are several methods to do with various languange
  i choose python so as flask because i wroked with them.
  so, for backend i wrote a code in python which 
  - get usernameand repository name of the user and send a get request to 
    api.github.com with username and repo name. 
  - git hub sends you the details within a json object. 
    which also contains Total open issuesand a link to that 
    repo's issues page. 
  - After getting issue link i iterate over all the pages and 
    issue and look for there date. 
  - Extracted date of every issue compared that date with current time
    an das per requirement i stored count of the issues that were opened in the last 24 hours,
    issues that were opened more than 24 hours ago but less than 7 days ago,
    open issues that were opened more than 7 days ago, number of open issues in three diffrent
    variables relatively.
  - store the varriables in A dictonary . because dictionary are easy to change in json 
    for fronted and return to the API call.
  And for fronted,
  - i design a simple HTML page which input is git link
  - after provide a link and clicking button
  - Link is get by java script where user name and repository name 
    are extracted from link
  - after that, through ajax a get request is send to back end
  - and after data is get it is displayed on screen

How i improve my solution?
  -There are many ways which i can improve. 
  - Future use for NodeJs.
  - and there are various things you could do with GIT apis
    - Top latest issues for each issue's tab  of link 24hrs, & 7days etc
    - I will get data on dashboard which has which user has more issues
    - Follower of that Issue
    - assignee of that issues with link to his avatar
    - Total number of watcher, follower etc in seprate box for each issue
    - There are various more you can do if you are on admin side.
      -like checking and notifing issuer and asignee that this much time is lapsed
       for your issue
      - Send mail.
      - Create a dashbord of own where you can set priority of issue
      - etc 

gitproject's People

Watchers

Kishlaya Kumar 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.