Skip to content

Trainline boilerplate for on-the-day technical test

Notifications You must be signed in to change notification settings

trainline/tangotest

Repository files navigation

Notes for the candidate

  • Not all the code will have to remain as it is for the exercise to be completed, and it doesn't matter if you are not familiar with all the stack as you will be able to use google for documentation.
  • You should verify they you run the getting started commands successfully from your machine - you should end up with the Create React App screen.
  • You should spend a little time looking at the way the project is structured. At Trainline, at this moment, key libraries are TypeScript, Redux, redux-observable and Express so the boilerplate uses these. There are example tests for both the client and the server.
  • During the interview we'll introduce the stories and acceptance criteria we would you to work on (internal private link: https://wiki.thetrainline.com/display/TAN/2.+face-to-face+interview).

Definitions

  • A station is (name, id, latitude, longitude, ...)
  • A route is an (origin station, destination station)
  • A journey is a (route, departAt, arriveAt, duration, price, ...)

Getting started

This project was bootstrapped with Create React App.

nvm install
yarn
yarn start

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open https://localhost:5000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn start:prod

Runs the built app in production mode, served by Express.
Open https://localhost:8443 to view it in the browser.