20

pyhon django と rest フレームワーク、AngularJs と restangular および Mongodb を使用する 1 つのプロジェクトを開始します。angularjs を使用してクライアント側アプリケーションの作成を開始し、バックエンドをフックできるようなフォルダー構造を検討する必要があります。または、最初にフォルダ構造を考えてから続行する必要があります。2番目のオプションでも、これらすべてのテクノロジーに慣れていないため、どのタイプのフォルダー構造が存在する必要があるかについて混乱しています。今まで私が考えていたフォルダ構造はこのようなものです..

Root Folder
| -- api
     |-- view.py
     |-- url.py
     |-- model.py
| -- app
     |-- css
     |-- js
     |-- images
     |-- index.html

助けてください..どんな提案もいただければ幸いです...

4

2 に答える 2

7

2 つの異なるドメインを使用している場合。ここに私がそれを行う方法のgitシードがあります。お気軽にご利用ください。

Angular/Django シード

.
├── app/
│   ├── shared/   // acts as reusable components or partials of our site
│   │   ├── sidebar/
│   │   │   ├── sidebarDirective.js
│   │   │   └── sidebarView.html
│   │   └── article/
│   │       ├── articleDirective.js
│   │       └── articleView.html
│   ├── components/   // each component is treated as a mini Angular app
│   │   ├── home/
│   │   │   ├── homeController.js
│   │   │   ├── homeService.js
│   │   │   └── homeView.html
│   │   └── blog/
│   │       ├── blogController.js
│   │       ├── blogService.js
│   │       └── blogView.html
│   ├── app.module.js
│   └── app.routes.js
├── assets/
│   ├── img/      // Images and icons for your app
│   ├── css/      // All styles and style related files (SCSS or LESS files)
│   ├── js/       // JavaScript files written for your app that are not for angular
│   └── libs/     // Third party libraries such as jQuery, Moment, Underscore, etc.
└── index.html
于 2013-10-24T22:33:39.700 に答える