I would like to ask how can i build a webpage, which its sole purpose for this example will be a photo gallery, with Javascript + Html5 + CSS3 + Firebase hosting dynamically.
What i am trying to figure out is how to pull a specific folder from my Firebase hosting server with Javascript and display its content, for example photos, in the html page. I also want to be able to look into nested folders within the specific folder I am approaching. I don't want to do anything statically because I have no idea how many files I have in the folder.
So to summarize everything I want to write a piece of code with javascript that will request a folder in Firebase and display all its content including the sub folder in a web page.
Thanks ahead and be gentle... I started with this subject 4 days ago :D :D :D
function createLink(){ //this functions should itterate over the data we got in response and create a //link in the ul
let rootFolder = getFolderFromFirebase();
let li = document.createElement("li");
li.className = "collection-item";
li.id = "rootItem";
li.appendChild(document.createTextNode("root item text")); document.querySelector("ul.collection").appendChild(li);
}
function getFolderFromFirebase(){
//TODO this part will ask from the firebase server the root folder we want to work on, it contains n or 0 files and may contain n or 0 sub-folders, this is what i am missing
}