-
Notifications
You must be signed in to change notification settings - Fork 42
File Naming Structure
jason humphrey edited this page Dec 31, 2016
·
2 revisions
We have implemented modules with a specific file naming convention for server & client side coding. Each module has a unique such as blog
. Inside of each module you specific files named as such UNIQUE_NAME.FILE_TYPE_IDENTIFIER.FILE_EXTENSION
FRONTEND | BACKEND |
---|---|
module |
models |
controller |
controller |
routes |
routes |
config |
spec |
service |
|
provider |
|
directive |
|
style |
|
json |
|
view |
|
spec |
Once everything is set up properly we then register all modules and all of its content appropriately on server.js
startup.
Examples on the frontend include :
blog.controller.js
email.controller.js
blog.factory.js
auth.factory.js
blog.module.js
blog.routes.js.js
blog.spec.css
blog.style.css
blog.style.scss
list.style.less
create.view.html
Examples on the backend include :
blog.controller.js
blog.model.js
blog.routes.js
blog.spec.js
Copyright © Green Pioneer Solutions, LLC 2014 -2017