This app is built on following technologies.
- create-react-app
- React (UI)
- Redux (Data Flow)
- ES6 / ES7 standards
- Sass (With node-sass-chokidar)
- Mocha, Expect.js (Test suite)
Yarn is documented here, npm is ok too.
$ yarn
$ yarn dev
Go to localhost:3000.
Unit tests can be run with:
$ yarn test
Bundle for production is created under /build
directory with:
$ yarn build
Fake data is produced with JSON Generator.
- Cities data stored in a json file named
flights.json
under/app
directory. - Flights data stored in a json file named
flights.json
under/app
directory.
Cities are plain strings. Each flight is an object containing properties:
from
: An object to represent departing airport. Contains:short
: Short name of the airport, code.full
: Full name of the airport.
to
: Same struture withfrom
to represent destination airport.code
: Flight code, String.departure
: Departure time, ISO 8601 Date String.arrival
: Arrival time, ISO 8601 Date String.price
: One way flight price.
- Full names of airports includes relevant city name.
- Two way price is equal to out flight price + return flight price.
- No service fees are being charged.
- Flights are scheduled between Jun 10 2018 & Jul 20 2018.