Realtime File Server Metrics with Javascript from Scratch

I’m trying to build a webpage that shows the status of a File Server I built using MDADM and Samba. I mostly want it to show the RAID’s status, as far as disk health, and RAID health overall. I want to do this as a way to understand JS more and get a better handle on how to build a website.

What I think would be easiest for now until I get more experience would be to have the status be spit out to some txt files on the File Server and then read those into the site dynamically, so they update every second/minute. I just want to know how to display the contents of a txt file that is on the File Server to the webpage, such that it will dynamically update while I am viewing the page, no refreshing. The txt file on the server will update by using cronjob each minute to get the RAID status with something like cat /proc/mdstat > /users/me/raidstatus.txt. I know it’s hacky but it’s just to learn and build something useful for my home lab.

I am barely a novice with JS, CSS, and HTML. I’m having trouble using search terms to find tutorials and explainers on what seems to be a very simple problem.