{"_id":"573d3a42cf7be63200c5b0db","category":{"_id":"563c239e260dde0d00c5e890","project":"563b65bd9e3f2225009fd2bc","version":"563b65bd9e3f2225009fd2bf","__v":2,"pages":["563c23b519ae7b0d0050d45f","563c23d6ae97cc0d00a8fed2"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-06T03:50:54.619Z","from_sync":false,"order":2,"slug":"tutorial","title":"Building Blocks"},"parentDoc":null,"version":{"_id":"563b65bd9e3f2225009fd2bf","project":"563b65bd9e3f2225009fd2bc","__v":4,"createdAt":"2015-11-05T14:20:45.639Z","releaseDate":"2015-11-05T14:20:45.639Z","categories":["563b65be9e3f2225009fd2c0","563b6b25e951f60d000b4513","563c239e260dde0d00c5e890","563c2440260dde0d00c5e891"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"4.0.0","version":"4.0"},"project":"563b65bd9e3f2225009fd2bc","user":"570df764b22f0129008dfc23","__v":32,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-19T04:00:02.546Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Downloading the Package\"\n}\n[/block]\nThe package that is downloaded consist of the following files & folders. \n\n1. config\n2. public\n3. databases\n3. resouces\n4. srs\n5. test\n6. .gitignnore\n7. .travis.yml\n8. composer.json\n9. licence.md\n10. phpnit.xml\n11. readme.md\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Package Structure\"\n}\n[/block]\nThe structure allows the user to understand the package against small and large applications. The user can assemble the package as he/she would desire. \n\n##src Directory##\n\nThe ***Src*** directory consist of a variety of files & directories. It contains the core code of the applications, the directory will be explored in depth later. \n\nThe ***config*** directory, consist of all of the application's configuration files.\n\nThe ***database*** directory contains your database migration and seeds that has been implemented. You may also use this directory to hold an SQLite database.\n\nThe ***public*** directory contains the front controller and your assets (images, JavaScript, CSS, etc.).\n\nThe ***resources*** directory contains your views, raw assets (LESS, SASS, CoffeeScript), and localization files.\n\nThe ***tests*** directory contains your automated tests. An example PHPUnit is provided out of the box.\n\n\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"SRC Directory\"\n}\n[/block]\nThe \"meat\" of your application lives in the ***src*** directory. By default, this directory is namespaced under ***Src*** and is autoloaded by Composer using the PSR-4 autoloading standard.\n\nThe ***Policies*** directory contains the authorization policy classes for your application. Policies are used to determine if a user can perform a given action against a resource. For more information, check out the authorization documentation.","excerpt":"You could peruse the following process flow to understand the result of the Lavalite package that can be developed.","slug":"understanding-the-package","type":"basic","title":"Package structure"}

Package structure

You could peruse the following process flow to understand the result of the Lavalite package that can be developed.

[block:api-header] { "type": "basic", "title": "Downloading the Package" } [/block] The package that is downloaded consist of the following files & folders. 1. config 2. public 3. databases 3. resouces 4. srs 5. test 6. .gitignnore 7. .travis.yml 8. composer.json 9. licence.md 10. phpnit.xml 11. readme.md [block:api-header] { "type": "basic", "title": "Package Structure" } [/block] The structure allows the user to understand the package against small and large applications. The user can assemble the package as he/she would desire. ##src Directory## The ***Src*** directory consist of a variety of files & directories. It contains the core code of the applications, the directory will be explored in depth later. The ***config*** directory, consist of all of the application's configuration files. The ***database*** directory contains your database migration and seeds that has been implemented. You may also use this directory to hold an SQLite database. The ***public*** directory contains the front controller and your assets (images, JavaScript, CSS, etc.). The ***resources*** directory contains your views, raw assets (LESS, SASS, CoffeeScript), and localization files. The ***tests*** directory contains your automated tests. An example PHPUnit is provided out of the box. [block:api-header] { "type": "basic", "title": "SRC Directory" } [/block] The "meat" of your application lives in the ***src*** directory. By default, this directory is namespaced under ***Src*** and is autoloaded by Composer using the PSR-4 autoloading standard. The ***Policies*** directory contains the authorization policy classes for your application. Policies are used to determine if a user can perform a given action against a resource. For more information, check out the authorization documentation.