Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 810 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 810 Bytes

Swtizerland Open Transport Data - Departure and Arrival API

Installation

Setup is very easy. First, clone the repository

git clone https://github.com/tomihbk/cff-departure-arrival-dashboard-api.git
cd cff-departure-arrival-dashboard-api

Copy file .env.dev to .env

OPEN_TRANSPORT_DATA_API_URL = https://api.opentransportdata.swiss/ojp2020
OPEN_TRANSPORT_DATA_API_TOKEN = TOKEN_GENERATED_FROM(https://opentransportdata.swiss/en/dev-dashboard/)
API_VERSION = API_VERSION(v1)
APP_PORT = APP_PORT_FOR_DEVELOPMENT

Your project is now ready. Start the project with docker-compose :

docker-compose up -d

Or on your local node environment :

npm install; npm run dev

Your API path is http://localhost:APP_PORT/API_VERSION/transport.