Skip to content

FabioFDaSilva/traveltek-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:
  1. On a directory of your choice, open a terminal and type : git clone https://github.com/FabioFDaSilva/traveltek-assignment.git
  2. cd traveltek-assignment/server
  3. npm install
  4. cd ../client
  5. npm install
  6. npm start
  7. Open another terminal
  8. cd traveltek-assignment/server
  9. node index.mjs
  10. Navigate to localhost:3000 once react is done compiling and mounting.

Notes:

  1. npm start sometimes takes a while to launch the application.

  2. 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",
  3. The .xml file is located at traveltek-assignment/server/data/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published