Crmeb-java follows the psr-2 naming convention and psr-4 auto-loading convention, and note the following conventions:

Directories and file directories use lowercase + underscore; . Class libraries and function files are all suffixed with.php; The file name of the class is defined in the namespace, and the path of the namespace is the same as the path of the class library file. Class files are named by hump method (the first letter is uppercase), and other files are named by lowercase + underscore. The name of the class and the file name of the class should be the same, and the hump method should be used to name the class (uppercase). Classes are named using the hump method (uppercase), such as User and UserType. By default, suffixes are not needed. For example, the UserController should be named User directly. Method names use the hump method, such as getClientIP; Attributes are named using the hump method, such as TableName, Instance; Constants and configuration constants are named with uppercase letters and underscores, such as APP_PATH; Configuration parameters are named with lowercase letters and underscores, such as url-rout-on and url-convert; Data tables and fields should be named in lowercase and underlined. Note that the names of fields should not begin with an underscore, such as the Think_User table and the user_name field. It is not recommended to use Hump and Chinese for data tables and fields. System code UTF-8 LF

Please understand and try to follow the above naming conventions to reduce unnecessary errors in the development process.

Development specification Java subprojects follow Alibaba development specification documents

The CRMEB Admin development specification uses ES6 syntax method annotation

SheetName => SheetName => Sheet Export Default Function ToExcel ({th, data, FileName, fileType, sheetName}) line comment //

Naming page directory folder naming format Camel naming, for example: userList Vue Home – CreatStore – Index. Vue – Index. Vue – Sort – Index. Vue – StoreAttr – Index. Vue – Sort – Index Index. vue – storeComment Product Review Bass – index.vue

Page naming, group naming, and folder naming formats. Small camel camel naming, such as userList

Class name functions are humped such as addUser variables are humped such as user or userInfo constants are humped with large underscores such as VUE_APP_API_URl

File Management Specification Views Page Module Must Parts folder distinguish API interface one module one file build one plugins one plugins one folder Vuex Routing State Management, A module in the modules build a folder router a module is a module in the modules build a folder style style USES iView bringing form as far as possible, Common. less system common style do not move easily custom common style style.less, each time to add must add comments, page independent style in the page to write, Create a new style file named utils custom tool js independently, usually do not need to create a new folder

– – – – – – – – – – – – – – – – – – – – – – – – Appsetting each application module function management of the public number, small program, Alipay, Baidu small program, today’s headlines small program Logistics Settings Heavy Exercises – Maintain Configure Categories Combination Data Forms Configure Heavy Exercises – Error – Page Development

Cloning project

git clone https://gitee.com/ZhongBangKe…

Enter the project directory

cd ##

Install dependencies

npm install

Do not use CNPM to install dependencies directly, there will be a variety of weird bugs. You can solve the problem of slow NPM download speed by doing the following

npm install –registry=https://registry.npm.taobao.org

Start the service

The NPM Run Dev browser is at http://localhost:9527

release

Building a test environment

npm run build:stage

Build the production environment

NPM run build:prod others

Preview publish environment effects

npm run preview

Preview release environment effects + static resource analysis

npm run preview — –report

Code format check

npm run lint

Code format checks and fixes automatically

npm run lint — –fix

If you feel this article to you a bit with our open source project, please little star: http://github.crmeb.net/u/defu be obliged!