Open mostafa-hashhash opened 4 years ago
أناا بس مستغربه هو ليه ما ينفعش نرفعها عادي زي الملفات العاديه ، أنا ماستخدمتش
API
قبل كده فمستغربه شويه من الفكره ديه
عامة هو مافيش حاجه معموله كده، أنا كنت باخد الملف عادي زي مابيتاخد من ملف عندك في النظام
src="./path/path"
فلو أمكن توضحلي النقطه ديه أكون شاكره ليك
@SarahZaki03 will these files be local on my device?
simply we need some storage for the audio files and we need the vue app to have access on them, you may think what about putting the files besides the vue app files on the server without any need to developed server backend server application and APIs for the vue. and the answer is : the user will host the vue app in his browser so the /path/fileName will search in the user's computer not our server.
and we need something to search for them and send them to the vue app ( user's browser ),, and that's exactly the backend process.
with this in mind, the APIs is how the browser will specify the details about the needed file and how the server will respond. we can do this if we created our own server on something like amazon web services or google cloud platform or any cloud.
@mostafa-hashhash provision our Environment on a virtual machine ( server ) having the storage and the computational capacity, so that we can expose our endpoints by developing the server application and with the OS file system API we can retrieve the data.
لو عملنا الطريقه ديه، كده ممكن ان كذا تطبيق يستخدم نفس ال API ولو أي حد عايز يستفيد منه هينفع صحيح كده
we need to know how the data will be sent to the front end.
if there's a Ready-made API endpoint which we can call with specific parameters to retrieve our data?