{"id":20710922,"url":"https://github.com/wayne-weibel/numerated_mbta","last_synced_at":"2026-04-22T02:32:37.913Z","repository":{"id":74248731,"uuid":"358016521","full_name":"wayne-weibel/numerated_mbta","owner":"wayne-weibel","description":"Find the next departing train for a particular stop on the MBTA T network.","archived":false,"fork":false,"pushed_at":"2021-04-16T04:54:38.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-18T05:48:33.658Z","etag":null,"topics":["django","python","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wayne-weibel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-14T19:16:04.000Z","updated_at":"2021-04-16T14:47:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"41cc8d02-005f-41c2-bcd4-5d9edea3f3fa","html_url":"https://github.com/wayne-weibel/numerated_mbta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wayne-weibel/numerated_mbta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne-weibel%2Fnumerated_mbta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne-weibel%2Fnumerated_mbta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne-weibel%2Fnumerated_mbta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne-weibel%2Fnumerated_mbta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayne-weibel","download_url":"https://codeload.github.com/wayne-weibel/numerated_mbta/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne-weibel%2Fnumerated_mbta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32118105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","python","rest-api"],"created_at":"2024-11-17T02:13:32.121Z","updated_at":"2026-04-22T02:32:37.901Z","avatar_url":"https://github.com/wayne-weibel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Numerated Coding Challenge\n\n## Challenge\nFind the next departing train for a particular stop on the MBTA T network.\n\n## Story Form\nAs an MBTA rider, I would like to know when the next train is going to depart from a specific\nstop so that I know when I should plan to get to the boarding area.\nInstructions\n\nWrite a program in a language of your choice (we prefer Python or Angular) that interacts with\nthe MBTA public API (https://api-v3.mbta.com) to achieve the following acceptance criteria:\n\n1. Your program should prompt users to select from a list of routes that service only Light\nand Heavy Rail trains.\n2. Your program should display a listing of stops related to the selected route and prompt\nthe user to select a stop\n3. Your program should display a list of route directions and prompt the user to select a\ndirection\n4. Your program should display the next predicted departure time for a train based on the\npreviously selected inputs\n\n## Evaluation\nYour code submission will be evaluated on function, code structure, performance, readability,\ntestability and supplied automated tests. If there are any package dependencies or special\ninstall instructions, please make sure to include those with your submission.\n\n__*to be complete within 48 hours*__\n\n---\n\n#### Django\n\nThis was my first time using Django.  Apologies that it is not fully utilized and\nsome of the things are likely out of place.  I am sure there are also ways to incorporate NPM\nto acquire and manage frontend libraries that would greatly improve the UI; went with standard\nCSS (minimally would want a Sass or Less compiler) and jQuery.  The initial setup of Django and\nworking with the obfuscatation of `manage.py` and setting up the repo for presentation was\nmore of an issue than the actual exercise. Not to mention that the MBTA API has a few issues:\nwhen requesting stops you are able to include the related route, however, this is only when\nfiltering with a single route (not a list). So, that required a significant refactor and addition\nof paths, functions, and additional ajax call from the frontend.\n\nAnyway ... to use:\n\n```\ncd [path-to-repo]/django\nmake\nmake run\n\n* In your favorite browser go to `http://localhost:8000/mbta`\n```\n\nRunning tests:\n\n```\ncd [path-to-repo]/django\nmake\nmake test\n\n* Coverage report generated to [path-to-repo]/django/htmlcov\n```\n\n---\n\nThis was an interesting exercise touching on many aspects of software development.\nI certainly learned things. I hope to extend this same exercise to other frameworks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayne-weibel%2Fnumerated_mbta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayne-weibel%2Fnumerated_mbta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayne-weibel%2Fnumerated_mbta/lists"}