This is a web app for searching the public transport timetables in Västra Götaland, Sweden, through Västtrafik's API.
It has an Angular 2 frontend, which is probably a tad overkill for its purpose, and a small Node + Express backend for API authentication. I created it mostly because I wanted to try the new Angular out.
- Install the npm packages for both backend and frontend.
- Run the TypeScript compiler in
src/frontend
withnpm run tsc
. - Add a
vasttrafik.js
insrc/backend
exportingkey
,secret
,host
andpath
. - Start the server in
src/backend
withnode server.js
. - Go to
localhost:3000
.