This project is the backend of the 'Catch the train' web application. The react frontend project is is also on github: https://github.com/JulienRobberechts/catch-the-train-client.
The application Catch the train in production: https://catch-the-train.dev-app.space (if deployed)
npm i
To start the application locally with mocked data:
npm start
To start the application locally or in prod with real ratp data:
npm run start:prod
To run tests:
npm test
then query the api at 'http://localhost:3034/next-trains/rers/A/chatelet+les+halles/auber'
or one of the query in requests-next-train.http
Warning: Mocked data is only returning 'rers/A/chatelet+les+halles'
To run tests with watch mode:
npm run test
To run update the snapshot tests:
npm run test-update
to launch the app
open the generated file: coverage report
