Production port is 31415.
Start by cloning the project using git.
git clone git@github.com:linjekoll/mainline-static-server.git
Navigate to the downloaded folder and run bundler.
cd mainline-static-server && bundle install
bundle exec ruby server.rb -p 31415
bundle exec shotgun start.ru -p 31415
Using shotgun will cause the server to restart everytime server.rb
is changed.
... or start the server using foreman.
foreman start
Returns a list of stops for the given station line_id
.
[{
"name": "Mölndals sjukhus",
"id": 2,
"time_from_prev_station": 120,
"destination_station": 4,
"origin_station": 1,
"sid": "00012130"
}]