Git Product home page Git Product logo

datablase's Introduction

Datablase

The SIBR statistics API.

Contributing

Please feel free to open PRs adding new calculations to this project! The schema for the database can be found here.

When adding an API endpoint, you must document it using the JSDoc-like syntax recognized by express-swagger-generator so that the API docs are updated.

Environment

Datablase requires some environmental variables to be set. A list of these variables can be found below. They can be set manually, or placed in a .env file.

SIBR_API_SCHEME=http
PGUSER=dbuser
PGHOST=database.server.com
PGPASSWORD=secretpassword
PGDATABASE=mydb
PGPORT=3211
DATABASE_URL="postgresql://username:password@localhost:5432/database?schema=data"

Installation

  1. cd datablase to go into the project root
  2. yarn to install the website's dependencies
  3. npx prisma generate to generate the Prisma query engine binary used by v2 endpoints

Running Locally

  1. yarn dev to start the development server
  2. open http://localhost:3000/ to open the development server

datablase's People

Contributors

mjhale avatar lilserf avatar corvimae avatar ifhbiff avatar metermaid avatar dlareau avatar gibbyfree avatar tehstone avatar markrjamieson avatar pokeylope avatar

Stargazers

Josh Hall-Bachner avatar siobhansabino avatar Julien (CJK) avatar  avatar  avatar  avatar  avatar Gus Wiedey avatar  avatar Joe Maliksi avatar  avatar

Watchers

 avatar James Cloos avatar  avatar Danny Ben-David avatar Izzy Dahanela avatar lofty avatar A avatar Robby Blum avatar  avatar

datablase's Issues

Smol typo in blaseball-reference.com swagger

Hello, I noticed a smol typo in the blaseball-reference.com swagger spec, under the events/ endpoint:

Screen Shot 2020-09-13 at 11 40 20

Batter ID field description says "pitcher" but should say "batter"

Couldn't find the swagger yaml anywhere, so hopefully this is a good place to open this issue

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.