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-apiCopy 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_DEVELOPMENTYour project is now ready. Start the project with docker-compose :
docker-compose up -dOr on your local node environment :
npm install; npm run devYour API path is http://localhost:APP_PORT/API_VERSION/transport.