Skip to content

mbleuer/journey-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Journey API Proxy

Add the following lines to your .zshrc or .bashrc file:

export JOURNEY_TOKEN_URL="url"
export JOURNEY_TOKEN_CLIENT_ID="client-id"
export JOURNEY_TOKEN_CLIENT_SECRET="s3cr3t"
export JOURNEY_TOKEN_CLIENT_WSG_CREDENTIALS='wsg-credentials'
export JOURNEY_LOCATIONS_URL="url"
export JOURNEY_LOCATIONS_TRIPS="url"

Then run the following commands:

npm install
PORT=8080 node index.js

Then you can test the API as follows:

curl http://localhost:3000/station-search/zurich
curl http://localhost:3000/station-search/bern

curl http://localhost:3000/from/8503000/to/8507000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.5%
  • Dockerfile 3.5%