I currently have an Angular app (MEAN Stack) that I am running locally on my Windows machine. Being new to Node/Express, I would like to be able to access a local directory from http://localhost:3006
that I have setup within my main app directory, called /myfiles
which I am unsure how to do.
What I am unsure is, how do I create an endpoint to access and read these files from localhost
within the /myfiles
directory and display them within an Angular Material dialog?
Just not sure what I need to do as part of Express side (setting up the route) and then the Angular side (using HttpClient) to display.
Further to the above, I will also need to write back to the /myfiles
directory, where I will need to perform a copy command based on a file selection within Angular.