I try to achieve the following with Angular and a Node.js cloud function (Firebase):
- Placing an entire folder with many files (2MB) to the Angular /assets/ folder.
- Let the user input some data to change specific text content of some files
- Calling the Cloud function with an HTTP Request and send the user data
- Access this folder inside the cloud function
- Cloning the entire folder to a temporary directory and work on the cloned files with Node.JS by replacing some content strings in some files
- Sending the URL from the new manipulated folder back to the user
In general I have problems to understand how I could I create a connection between the cloud function and the folder I want to work with. Both, the Angular application and also the Cloud Functions, are hosted on Firebase. When I understand how I can connect with the folder, the other points would be no problem.
Is there a way to achieve what I want to?