Skip to content

Client architecture

Mithun Das edited this page Jul 18, 2015 · 1 revision

Master Template

https://github.com/sahil87/sportscafe/tree/master/client/app

This is the main frontend app... all angular code, boostrap css and html5 code resides over here.

https://github.com/sahil87/sportscafe/blob/master/client/app/index.html

This file is the layout or the master, all the master css, js will be embedded in here.. All the sub htmls will be loaded as partials inside the following Angular block

<main ui-view></main>

Code ref:- https://github.com/sahil87/sportscafe/blob/master/client/app/index.html#L66

Partials

The partials are kept under the "views" folder:- https://github.com/sahil87/sportscafe/tree/master/client/app/views

The "Home" folder has the landing index html partial code The "Pages" folder has the static pages like aboutus, terms and condition etc..

Assets

https://github.com/sahil87/sportscafe/tree/master/client/app/assets

This is the home for the public files like javascripts, images, css etc..

Angular Js

Config/Initializer

https://github.com/sahil87/sportscafe/blob/master/client/app/assets/js/app.js

This is the main config file or router handler for our app, based on this file the Angular decides what modules to load and what not to load

Controllers

All the partial folders that is created under app/views directory has there instance over here, which contains the Controller file of the modules..

.................. To be continued ....................

Clone this wiki locally