I’ve been working on a side project for the last month in order to learn about front-end web development. While not complete by any means, I think it’s good enough to release as a beta. I plan to add features, improve the UI and refactor the code in future.
Iarnród Éireann (the Irish Rail company) has a REST API which provides details of the stations in its network and the current status of its trains. My webpage plots these stations and trains on a Google Map and shows upcoming train information for each station.
I plan to write a series of posts on how I implemented this and the lessons I learned along the way.
The project is available here and the code is available on Github under the MIT licence. The roadmap.md document is where I’m tracking future work that needs to be done on the project. Any feedback would be much appreciated.
As far as the code goes:
- I’m happy enough with the Backbone model and collection code. The Backbone view code still needs some refactoring to remove duplication and use proper Backbone idioms.
- The HTML and CSS code are functional rather than elegant. I’m hoping to improve these as time goes by and as I get more experience with these languages.