Directory Structure
Directory Structure
bash
project
├── env
├── src
│ ├── front
│ │ ├── config
│ │ │ ├── config
│ │ │ ├── locales.ts
│ │ │ └── monkey.ts
│ ├── module
│ ├── module-vendor
│ ├── suite
│ │ ├── a-demo
│ │ └── a-home
│ │ ├── modules
│ │ │ ├── a-home
│ │ │ ├── home-api
│ │ │ ├── home-icon
│ │ │ ├── home-layout
│ │ │ ├── home-pagesystem
│ │ │ └── home-router
│ └── suite-vendor
Module/Suite
Name | Description |
---|---|
src/module | Standalone module (not part of a suite) |
src/module-vendor | Standalone module (from third-party) |
src/suite | Suite |
src/suite-vendor | Suite (from third-party) |
Development suggestions
Zova has planned the modules/suites so that we can start business development immediately in the specified directory. The following conventions are only suggestions and are not mandatory:
- Suite
suite/a-demo
: Contains some test or demo code, which can be disabled during build - Suite
suite/a-home
: Development in this suite- Module
suite/a-home/modules/a-home
: Development in this module - Other modules: Different modules are preset with different system functions, and custom logic can be added
- Module
Grow into a large system
: As the business expands, more suites and modules can be created to split the system business
Directory cheat sheet
Name | Description |
---|---|
env | Env |
src/front/config/config | Config |
src/front/config/locales.ts | I18n |
src/suite/a-home/modules/home-api | API |
src/suite/a-home/modules/home-icon | Icon |
src/suite/a-home/modules/home-layout | Route Fields: meta.layout |
src/suite/a-home/modules/home-pagesystem | Route Fields: meta.absolute |
src/suite/a-home/modules/home-router | Navigation Guards |