Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 546 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 546 Bytes

readFilesWithFetch

Example of how to use 'fetch' to retrieve a file and get it's contents.

The calls to 'fetch' are made in index.html. index.html shows how to retrieve a .txt file, a .csv file, and a .json file using fetch.

Output is printed to the console. When the project is running from 'npm run start' you can open the inspector to see the output.

Installation

  1. Clone the git repository
  2. To run the server run 'npm run start', or 'node server.js'. It listens on port '3000'
  3. Open your web browser and go to localhost:3000