Reputation: 429
What should be the file structure of an Angularjs + Rails project. I am doing the angular part(never work with rails before) in this project. Previously i combined php frameworks(ci/laravel) with angular and the file structure was like following.
ngProjectFolder
-scripts
-views
-index.html
-backend(ci/laravel project folder)
--application
--index.php
I also worked on such file structure where angular files are put into php frameworks assets and view folders. e.g.
phpProjectFolder (ci/laravel)
-assets
--js
---angularjs controller and other js files
--css
-controller(php)
-model(php)
-view
--angular view files
None of these file structure are exact(unnecessary folder are not shown here). I just wanted show an overview.
I will use Angular routing system.
Which file structure should i use and why? Is there any security issues? Need some advice. thanks in advance.
Upvotes: 6
Views: 799
Reputation: 158
Similar to the PHP project you mentioned, you can use:
RailsProjectFolder
-app
--assets
---javascript
----angularjs
Upvotes: 3