angularjs - Express and Angular directory structure -


i want build website express , angular (no sql) started wondering right structure kind of app.

for angular there directory structre here:

app/ ----- shared/   // acts reusable components or partials of our site ---------- sidebar/ --------------- sidebardirective.js --------------- sidebarview.html ---------- article/ --------------- articledirective.js --------------- articleview.html ----- components/   // each component treated 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 , icons app ----- css/      // styles , style related files (scss or less files) ----- js/       // javascript files written app not angular ----- libs/     // third-party libraries such jquery, moment, underscore, etc. index.html 

for express don't no should because have no lot of experience express, can put express correct structure.

if express backend acts api server, can put app's parent folder side side, i.e.

backend/ ----gruntfile.js ----express.js ----router/ ----package.json ----node_modules/ frontend/ ----app/ 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -