Coder Social home page Coder Social logo

github's Introduction

github - Github Integration for Scala Build Status Maven Central Code of Consuct

Contributing

This library is just starting! Github is a big API, and to get it all mapped it going to take some time and energy, however I believe we have a firm foundation on which to build and the tools set up for quick iterations.

The library has taken lessons from the haskell github. The design goals is that we break data into relevant objects from the Github pages, with modules breaking out subpages from the overarching layout on the api guide.

Then the endpoints module is where the methods that call those individual endpoints live. That should make it easy to seperate concerns such as serialization to the data modules, and map the functions to what behavior they want to call, which is easily isolatable by the external api.

Requests then go through the requestConstructor which has options for both paginated and non-paginated requests. Any methods that update information require auth. We want to make sure to expose Option[Auth] on all endpoints, regardless of whether they require it as rate limiting differs at 60/hr for unauthed, and 5000/hr for authed.

Tests are focused around creating HttpClients from the endpoints listed on Github via Circe literal and http4s-dsl, this allows us to make sure our endpoints deserialization behavior works for the final output. Github will overall be the judge for our serialization, but we can test it looks like we expect.

Please create issues to let others know what endpoints you are working on, so we can build something that works nicely for everyone.

Quick Start

To use github in an existing SBT project with Scala 2.11 or a later version, add the following dependencies to your build.sbt depending on your needs:

libraryDependencies ++= Seq(
  "io.chrisdavenport" %% "github" % "<version>"
)

github's People

Contributors

christopherdavenport avatar

Watchers

 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.