-
Notifications
You must be signed in to change notification settings - Fork 6
File Structure
- Project File Structure
The api contains the laravel application that provides API for the application
Contains the front end source code
Contains code that are imported and accessible globally such as libraries, jQuery 3rd paprty plugins, style theme
Contains js files that are minified. This folder is also ignored in eslint due to minification
Style contains css,scss file that can be used anywhere in the module. Styles that are specific to a module such as spacing must be placed in <style scoped></style>
Contains component that can be used in any module. It can be viewed as a plugin that are created by the developer but not imported from other projects.
Note: italized "component" refers to the vue js component
Contains functions that has specific purpose that can use in components or modules
Contains the components for modules.
Note: italized "component" refers to the vue js component
##router
Contains routing related codes such as importing the helpers and services. It also contains the router for page navigation.
Router can be divided into three parts,
- index.js - contains the Router and importing of npm packages such as jquery and bootstrap
- module_routes - contains the route object for the router
- helpers.js - import all the helper from helpers
Contains code that has specific function in the application. Unlike helper, services can run on its own without being called by a component or module