Skip to content

shreeyapatell/CBL-Coding-Challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2020-Columbia-Build-Lab-Coding-Exercise

Thank you for your interest in joining Columbia Build Lab!

This is a simple coding exercise designed to see your proficiency in web programming. Although it is written in Python and JS using flask framework, you don't need prior experience with them to complete the exercise - you are welcome and encouraged to use any online resources. This exercise should take no longer than 1 hour, though you are welcome to take as much time as you need.

This exercise is designed to see how well you can read others' code, and extend it. As such, most of the code is already written - you only need to add a couple lines of code at the right place.

If you don't have flask on your computer, please install it with $pip install Flask. You can fork this repository and clone it to your desktop. You can run the code with $python server.py. Once you run it, you can type in http://127.0.0.1:5000/ on your browser to see the webpage rendered locally.

You'll see a short list of NHL teams, their scores, and buttons to increase their scores. Right now, clicking on a button doesn't increase the score immediately, but you need to refresh the page to see the change. The goal is to reflect this change immediately on the front-end. Once that's done, we would also like to sort the teams so that whenever there's a score change, the list would change so that the teams are listed in non-increasing order of scores from top to bottom (you don't need to sort them alphabetically when there is a tie). To do these, you would need to make changes in both server.py file and scoreboard.js file. When you're done, please send a pull request to this repository with your name and uni in the comment. Thanks and good luck!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.5%
  • Python 27.3%
  • HTML 26.2%