This sample project demonstrates the basic structure required to connect an HTML table’s data feed to a JS server-side script.
The jQuery DataTables plug-in is used to enhance the table and populate its contents with fake data from an online REST API. As a result, the HTML table becomes responsive, interactive, and linked to the server.
The step-by-step walkthrough can be found here:
https://levelup.gitconnected.com/create-interactive-html-tables-populated-with-api-data-dd5c467b0851
And to run it locally:
- Clone this repository to a local folder
- Run
npm install
from inside the root directory (i.e. where package.json is located) to install the dependencies - Run the web server using
node server.js
and visithttp://localhost:3000