Coder Social home page Coder Social logo

will-nollert / cyclingstatsdatabase Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 2.0 371 KB

a Node.js and Express-based API that queries a database of cycle races, scraped from procyclingstats.com

Home Page: https://cycling-databse.herokuapp.com

JavaScript 68.80% HTML 24.99% CSS 6.17% Procfile 0.03%
express expressjs mongodb nodejs

cyclingstatsdatabase's Introduction

World Tour Cycling API

The main focus of this project is a Node.js and Express-based API that queries a database of cycle races, scraped from procyclingstats.com. It allows users to retrieve information about individual races, as well as information about specific riders and their race history. The API is intended for cycling enthusiasts and those interested in historical race data. While the current dataset only includes the Classics from 1950 to 2023, I have plans for future development to add Grand Tours as well as individual rider statistics to the dataset.

Playground URL: https://cycling-databse.herokuapp.com/

Example Routes

Ammend this URL with one of the endpoint below to demo the API
Base URL: https://cycling-databse.herokuapp.com/api
Example Request: https://cycling-databse.herokuapp.com/api/bicycle-racers/wout-van-aert/info

HTTP Method URL description
Get /races/{raceName}/{startYear]/{endYear} Get EVERY race with a specified name, within a time frame
Get /races/{raceName}{year} Get ONE race by name and year
Get /races/{Race_ID}/finishers Get ALL finishers for a specific race by Race_ID
Get /races/{raceName}/from/{startYear}/to/{endYear}/ranked-by/startlist-quality Rank all races by start-list quality score from start year to end year
Get /bicycle-racers/{riderName}/info get all info for ONE rider by name
Get bicycle-racers/{riderName}/rankedHistory Rank ONE riders history by position

Demo

Screenshot 2023-04-24 204927


Screenshot 2023-04-24 205029

Tech Stack

Javascript, Express, NodeJS, Mongoose, MongoDB Atlas

Future development

Short term: Add all routes to API playground.

longer term: Add information to racer model and more stage races

cyclingstatsdatabase's People

Contributors

will-nollert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.