File system project assets to be shown in UI/view using AngularJS
posted 2 years ago
I am new to AngularJS and have a requirement as follows
In the view/UI I have to show the Project file system folder and its sub folders with assets. From UI user can create, update and delete as well.
So, the approach I am planning to follow is as follows
1. Based on file system Project folder hierarchy I will create a data model / object.
2. Via controller I will initialize the data model from the file system Project folder hierarchy and assets
3. Write a code in the $scope for the updation of the file system ( which in turn update the data model as mentioned in step 2)
Now, the important questions
a. What should be the best fit for the data model here. I mean JSON, XML etc.
b. Javascipt can't be used on server side activity. So, in what technology/language implement the logic of file system updation.
c. How to call the logic in (b) inside the $scope of controller.
I am sure this is not the first problem of its kind and lot many must have implemented something similar in the past.
Any standard way/approach to achieve this will be of great help.