What should be the file structure of the Angularjs + Rails project. I am doing the angular part (I never work with rails before) in this project. I used to combine php frameworks (ci / laravel) with angular, and the file structure was as follows.
ngProjectFolder -scripts -views -index.html -backend(ci/laravel project folder) --application --index.php
I also worked on such a file structure where angular files are put into php infrastructure resources and see folders. eg.
phpProjectFolder (ci/laravel) -assets --js ---angularjs controller and other js files --css -controller(php) -model(php) -view --angular view files
None of these file structures are accurate (an unnecessary folder is not shown here). I just wanted to show a review.
I will use the angular routing system.
What file structure should I use and why? Are there any security issues? Need some advice. thanks in advance.
source share