This is the NodeJS server providing data for the FerryTempo. It fetches data from the WSDOT Traveler Information API, specifically the ferry vessel location endpoint. Then, it processes that ferry data into the FerryTempo data object format. Finally, it provides HTTP endpoints for fetching ferry data on a per-route basis.
If you'd like to run FTServer locally, follow these instructions:
- Clone this repo (see clone instructions).
- Install NodeJS (see install instructions).
- Run
npm i
to install the dependencies. - Create a
.env
file in the project root containingWSDOT_API_KEY=<API KEY>
(ask a team member for the key). - Run
npm run dev
to start the server in development mode with hot reloading. or - Run
npm run start
to start the server in production mode.
We auto-generate schema documentation based on the JSON Schema. That documentation is available in the /docs directory.
To help contribute to FTServer, please read and follow the guidelines in Contributing.md.