How to connect a folder placed inside Angular assets in a Firebase Cloud Function?

Viewed 23

I try to achieve the following with Angular and a Node.js cloud function (Firebase):

  1. Placing an entire folder with many files (2MB) to the Angular /assets/ folder.
  2. Let the user input some data to change specific text content of some files
  3. Calling the Cloud function with an HTTP Request and send the user data
  4. Access this folder inside the cloud function
  5. 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
  6. 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?

0 Answers
Related