Closed arkadianriver closed 3 years ago
when fetching data, possibly refer to mtime of file and don't re-read it (or re-render for that matter) if the same as last fetch. (test accuracy of mtime and if this even matters in the scheme of things) Would require a tiny new todoFileMtime()
and moving the reading of file to its own pipeline function instead of being hit each time as an unnamed app.use() function, which might be a good idea anyway even if this feature isn't taken advantage of. (toss in possible file watchers, session variables for mtime, etc).
Have client keep itself updated by pulling from the APIs and rendering its own page instead of a static one made by express and EJS. Axios!
Besides not having to click refresh, JSON data in the client opens front-end possibilities. To filter tags to see particular projects highlighed, for example (if not in mermaid, maybe another view).