Working on a project (one of my first!!!) and hit a little bump. I think there may be multiple ways to do what I am trying to do and wanted to hear some suggestions.
I am working on a UI that will display data from a database (sqlite). It will be displayed in a table that will have search fields to narrow down the data.
I am using Node. I can successfully console.log the data from the db file. I can also send it directly to the browser (without displaying my html page).
What I would like to do is take the data, send it to my html file where I have the table and then display it. (I think I should first ask, does this approach make sense or should I be going about this a different way?)
I don’t know how to take data from the js file (that was pulled from the db) and send it to the html file. How do I do this? How hard is it to do with straight js code? Should I use a middle wear? Should I do js first, get it working, then use a middle wear to help for a better learning experience?
Thanks for your help group!