- Express.js (install with
npm install express) - CORS middleware (install with
npm install cors)
- Install dependencies:
npm install - Start the server:
node server.js - Open
testpage.htmlin a web browser (use a live server or HTML viewer) - Click the buttons on the page to fetch and display the items
This repository contains a simple API server using Express.js and a test page to demonstrate CORS requests. The server provides three endpoints:
/headshot(image)/resume(PDF)/text(plain text)
The test page (testpage.html) makes fetch requests to these endpoints and displays the responses.