Skip to content

Annotated File Directory

David Gertmenian-Wong edited this page Aug 23, 2014 · 6 revisions

##Annotated File Directory ###High level architecture of important folders and files

plateful
β”œβ”€β”€ app  #Contains all client-side code.
β”‚Β Β  β”œβ”€β”€ css
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ app.scss  #Custom app CSS.
β”‚Β Β  β”‚Β Β  └── ionic.scss  #Ionic bootstrap CSS.
β”‚Β Β  β”œβ”€β”€ index.jade  #App index page.
β”‚Β Β  └── js
β”‚Β Β   Β Β  β”œβ”€β”€ App.coffee  #Initialize angular's app.
β”‚Β Β   Β Β  β”œβ”€β”€ config
β”‚Β Β   Β Β  β”‚Β Β  β”œβ”€β”€ appCtrl.coffee  #Contains the $scope of the whole app.
β”‚Β Β   Β Β  β”‚Β Β  β”œβ”€β”€ app_run.coffee  #Configure app.
β”‚Β Β   Β Β  β”‚Β Β  └── common
β”‚Β Β  Β Β   β”‚Β Β      β”œβ”€β”€ factories  #Contains form and promise helper factories.
β”‚Β Β   Β Β  β”‚Β Β      └── services  #Contains auth helper service.
β”‚Β Β   Β Β  β”œβ”€β”€ directives
β”‚Β Β   Β Β  β”‚Β Β  β”œβ”€β”€ ngPlaces  #Map view directive.
β”‚Β Β   Β Β  β”‚Β Β  β”œβ”€β”€ ngRater  #Rating view directive.
β”‚Β Β   Β Β  β”‚Β Β  └── ngSelect  #Selector directive.
β”‚Β Β   Β Β  β”œβ”€β”€ factories  #Factories that primarily deal with RESTful calls to the server.
β”‚Β Β   Β Β  β”‚Β Β  β”œβ”€β”€ item
β”‚Β Β   Β Β  β”‚Β Β  β”œβ”€β”€ menu
β”‚Β Β   Β Β  β”‚Β Β  β”œβ”€β”€ photo
β”‚Β Β   Β Β  β”‚Β Β  β”œβ”€β”€ review
β”‚Β Β   Β Β  β”‚Β Β  └── user
β”‚Β Β   Β Β  └── modules
β”‚Β Β   Β Β  |   β”œβ”€β”€ auth  #Client OAuth module.
β”‚Β Β   Β Β  |   β”‚Β Β  β”œβ”€β”€ controllers
β”‚Β Β   Β Β  |   β”‚Β Β  β”œβ”€β”€ directives
β”‚Β Β   Β Β  |   β”‚Β Β  β”œβ”€β”€ services
β”‚Β Β   Β Β  |   β”‚Β Β  └── views
β”‚Β Β   Β Β  |   β”œβ”€β”€ geo  #Geo Location module.
β”‚Β Β   Β Β  |   β”œβ”€β”€ states  #App controller and views.
β”‚Β Β   Β Β  |   β”‚Β Β  β”œβ”€β”€ app.states.coffee  #States module
β”‚Β Β   Β Β  |   β”‚Β Β  β”œβ”€β”€ item  #Item controller and views
β”‚Β Β   Β Β  |   β”‚Β Β  β”‚Β Β  β”œβ”€β”€ controllers
β”‚Β Β   Β Β  |   β”‚Β Β  β”‚Β Β  └── views
β”‚Β Β   Β Β  |   β”‚Β Β  β”œβ”€β”€ map  #Map controller and views
β”‚Β Β   Β Β  |   β”‚Β Β  β”‚Β Β  β”œβ”€β”€ controllers
β”‚Β Β   Β Β  |   β”‚Β Β  β”‚Β Β  └── views
β”‚Β Β   Β Β  |   β”‚Β Β  └── menu  #Menu controller and views
β”‚Β Β   Β Β  |   β”‚Β Β   Β Β  β”œβ”€β”€ controllers
β”‚Β Β   Β Β  |   β”‚Β Β   Β Β  └── views
β”‚Β Β   Β Β  |   └── tabs  #Contains controller and view for each navigation tab.
β”‚Β Β   Β Β  |       β”œβ”€β”€ Tabs.coffee  #Tabs module.
β”‚Β Β   Β Β  |       β”œβ”€β”€ TabsCtrl.coffee  #Tabs controller.
β”‚Β Β   Β Β  |       β”œβ”€β”€ items
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ ItemsTab.coffee  #Items routing.
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ controllers
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ modals
β”‚Β Β   Β Β  |       β”‚Β Β  └── views
β”‚Β Β   Β Β  |       β”œβ”€β”€ me
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ MeTab.coffee
β”‚Β Β   Β Β  |       β”‚Β Β  └── views
β”‚Β Β  Β  Β  |       β”œβ”€β”€ menus
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ MenusTab.coffee
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ controllers
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ modals
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ services
β”‚Β Β   Β Β  |       β”‚Β Β  └── views
β”‚Β Β   Β Β  |       β”œβ”€β”€ review
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ ReviewTab.coffee
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ controllers
β”‚Β Β   Β Β  |       β”‚Β Β  └── views
β”‚Β Β   Β Β  |       β”œβ”€β”€ settings
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ SettingsTab.coffee
β”‚Β Β   Β Β  |       β”‚Β Β  β”œβ”€β”€ controllers
β”‚Β Β   Β Β  |       β”‚Β Β  └── views
β”‚Β Β   Β Β  |       └── tabs.jade  #Tabs view.
β”‚Β Β   Β Β  └── services #Helper functions.
β”‚Β Β   Β Β      β”œβ”€β”€ findDistance.coffee
β”‚Β Β   Β Β      β”œβ”€β”€ imagesService.coffee
β”‚Β Β   Β Β      └── makeStars.coffee  #Tabs view.
β”œβ”€β”€ assets  #Client dependency files, images, and other static assets.
β”œβ”€β”€ bower.json  #List of client dependencies to install before running.
β”œβ”€β”€ gulpfile.coffee  #Task runner
β”œβ”€β”€ hooks  #Tasks to run when compiling platform.
β”œβ”€β”€ import  #Compiles import_server files in javascript. Ignore this folder.
β”œβ”€β”€ import_server  #Contains all code for running complex database logic. Interacts with neo4j, postgreSQL and import server.
β”‚Β Β  β”œβ”€β”€ app.coffee #Basic node import server.
β”‚Β Β  β”œβ”€β”€ config  #Import server configuration.
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ api
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ db
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ environment
β”‚Β Β  β”‚Β Β  └── express.coffee
β”‚Β Β  β”œβ”€β”€ controller.coffee  #API endpoints for each import server route.
β”‚Β Β  └── routes.coffee  #Import server routes.
β”œβ”€β”€ node_modules  #Server dependency files
β”œβ”€β”€ package.json  #List of server dependencies to install before running.
β”œβ”€β”€ platforms  #Different mobile device types to compile everytime gulp build is run via emulate. Ignore this folder.
β”œβ”€β”€ plugins  #Cordova plugins.
β”œβ”€β”€ run  #Compiles server_coffee files in javascript. Ignore this folder.
β”œβ”€β”€ server_coffee  #Contains all server-side code.
β”‚Β Β  β”œβ”€β”€ app.coffee  #Basic node server.
β”‚Β Β  β”œβ”€β”€ components  #Currently handles error responses.
β”‚Β Β  β”œβ”€β”€ config
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ api  #External API keys and configurations.
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ environment  #Environment configuration.
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ express.coffee  #Express configuration.
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ local.env.coffee  #Local environment configuration.
β”‚Β Β  β”‚Β Β  └── neo4j.coffee  #Neo4j connection.
β”‚Β Β  β”œβ”€β”€ controllers  #API endpoint for each database table.
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ item.controller.coffee
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ menu.controller.coffee
β”‚Β Β  β”‚Β Β  └── review.controller.coffee
β”‚Β Β  β”œβ”€β”€ models  #Creates class with helper methods for each database table.
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Item.model.coffee
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Menu.model.coffee
β”‚Β Β  β”‚Β Β  └── Review.model.coffee
β”‚Β Β  β”œβ”€β”€ routes.coffee  #Server routes.
β”‚Β Β  └── views  #Server views. Currently only contains 404 error page.
β”œβ”€β”€ test  #Test suite.
└── www  #Compiles app files in javascript. Ignore this folder.

Clone this wiki locally