Git Product home page Git Product logo

rangit's Introduction

Random GitHub Repository

Synopsis

RanGit enable you to search repositories from a specific user by looking at his starred repositories and go see his following's starred repositories.

Motivation

Finding a hidden project on Github which could be THE new project you shouldn't miss.
This is my first project in Rust language. A simple project to understand the basics.

Installation

Install Rust environment on the official site.
type in a terminal git clone https://github.com/lpelleau/RanGit.git && cd RanGit && cp config.ini.sample config.ini && cargo build.
Get a token with GitHub API OAuth 2.0 and place it in the config file.

Usage

Run the project with cargo run. You can change settings in config.ini file. All options except token and root-login are optional.

Available options are:

  • depth-min: integer >= 0
  • depth-max: integer > 0
  • star-min: integer >= 0
  • star-max: integer > 0
  • languages: <Lang1, Lang2, ...>* (not case-sensitive)

/!\ Some language's repositories cannot be detected with Github API.

To see the advancement of the process, add -v (or --verbose) argument.

Todo

There are still a lot of things to do:

  • introduce cache for the results (with TTL ?): database (SQL/NoQL) ? file ?
  • add concurrency;
  • integrate rust-ini lib ?
  • avoid getting root-login repositories in results;

rangit's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mdevlamynck

rangit's Issues

Add cache for the results

Add cache for the results after HTTP request.
Maybe add a TTL to results.
Store the results in a database/file could be a great idea!

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.