Skip to content
liorkesos edited this page Oct 31, 2014 · 18 revisions

File Structure

From v0.4.x all the application code has been integrated into a number of packages. Each package uses MVC on the server and client. Below is the overall file structure as well as the package file structure

Server

  • server
    • config # Configuration Files (see below)
    • controllers # Server side logic goes here
    • models # schema models goes here
    • routes # rest api endpoints routing - here
    • views # swig based html rendering - here Client side package code

All of the Client side code resides in the node_modules/meanio/libdirectory.

Client

  • public
    • config # Configuration Files (see below)
    • controllers # Client side logic goes here
    • routes # Angular routes defined here
    • views # Angular view files found here
    • services # Angular service files found here
    • directives # Angular directive files found here

Packages code

All of the Packages code resides in the /packages directory.

The package can be thought of as a mini mean project following the same file structure

See the packages section for more details about the packages file structure

Clone this wiki locally