Angular CMS 的文件夹结构

Angular folder structure for CMS

我只是从 angular 开始,我在文件夹结构 http://www.johnpapa.net/angular-growth-structure/

上看到了这个 post

这是我为电子商务网站前端构建的文件夹的样子:

.
├── index.html
├── css
├── images
├── fonts
├── scripts
│   ├── app.js
│   ├── directives
│   │   ├── search
│   │   ├── image-slider
│   │   ├── faq
│   │   └── form
│   └── api
└── templates
    ├── nav.html
    ├── footer.html
    └── page
        ├── full.html
        └── sidebar-right.html

有什么更好的way/practice你会为此做的吗? 我最担心的是继续与 CMS(opencart/magento) 文件夹结构集成。

您的目录结构看起来不错,但是您可能 运行 在与任何 CMS 集成时遇到问题,因为它们将视图放在不同的目录中。

Workaround: Once you do integrate Magento or some random CMS, move your views to the CMS's view folder and make sure you serve index.html with your angular from the CMS.

希望能帮到你。