GithubHelp home page GithubHelp logo

stravaleaderboard's Introduction

Usage

You need to have Python 2.7, urllib2 and Flask to run this program. To download packages using pip:

pip install urllib2
pip install Flask

Clone the repository.

Run the following command to run flask server on local machine.

FLASK_APP=script.py flask run

After a while you should be able to use the app at:

http://127.0.0.1:5000/

StravaLeaderboard

Strava (strava.com) is an online social platform for cyclers to record their rides and compare them with other users.

Using Strava API (https://strava.github.io/api/), find the most popular 10 cycling segments in Istanbul, and check their leaderboards (First 50). Return a dictionary of riders only in multiple leaderboards, and how many time they are listed in those leaderboards. (Endpoint 1)

Bonus: Calculate a score for each rider listed in those segments and return your highscore list. (Endpoint 2). Be creative and try to be fair with score calculation. Document which variables you are using for score calculation and the score formula.

  • Your application should be a web application. (Just an API backend)

  • You can use either Python 2 or Python 3

  • You can use any Python web framework and any Python library except stravalib

  • You can assume that this application will not receive high traffic.

  • Deliver your code to us as a (git) repository: we want to be able to see your commit history.

  • Remember, working code is one thing but we also look for clean design, patterns, and best practices. How advanced the final version will be is totally up to you.

stravaleaderboard's People

Contributors

dyln avatar

Stargazers

CanerEren avatar

Watchers

James Cloos 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.