This is an application that fetches flight data from an .xml file, reads, manipulates and displays relevant information using React.js/Redux for the front-end and node.js (express.js library) for the server.
This is not a complete project and much of the output could be displayed in a more elegant fashion IE:
- Proportion of flights could be displayed as a pie chart, encompassing the curious fact;
- Most daily departures from Manchester could have every flight displayed as a card; Prerequisits:
- git installed (version 2.37.0.windows.1 used for the project);
- Node Installed (version v16.15.1 used for the project); Instructions to run:
- On a directory of your choice, open a terminal and type :
git clone https://github.com/FabioFDaSilva/traveltek-assignment.git cd traveltek-assignment/servernpm installcd ../clientnpm installnpm start- Open another terminal
cd traveltek-assignment/servernode index.mjs- Navigate to localhost:3000 once react is done compiling and mounting.
Notes:
-
npm start sometimes takes a while to launch the application.
-
localhost:3000 and localhost:3001 will be used for this application, if you have anything else running on these ports feel free to change the ports:
- server port: traveltek-assignment/server/index.mjs line 57;
- server proxy port: traveltek-assignment/client/src/setupProxy.js line 7;
- client port: traveltek-assignment/client/package.json line 26:
- change
"start": "react-scripts start"to"start": "PORT= yourDesiredPort react-scripts start",
- change
-
The .xml file is located at traveltek-assignment/server/data/