当前位置:网站首页>egg framework
egg framework
2022-08-05 08:12:00 【cjx177187】
what is egg.js
Rules of convention
1 app/router.js: used to configure URL routing rules;
2 app/controller/** : used to parse the user's input, and return the corresponding result after processing;
3 app/service/**: used to write business logic layer;
4 app/public/**: used to place static resources;
5 config/config.{env}.js: used to write configuration files;
6 config/plugin.js is used to configure the plugins that need to be loaded;
- egg.js is a Node.js web framework with "convention over configuration"
- Egg adheres to "convention over configuration", and develops applications according to a unified set of conventions. This approach within the team can reduce the learning cost of developers, and developers are no longer "nails" and can flow.Without an agreed-upon team, the communication cost is very high. For example, some people will divide the stack according to the directory and others will divide the function according to the directory. It is easy for developers to make mistakes if they have inconsistent cognition.But convention does not mean poor scalability. On the contrary, Egg has high scalability and can customize the framework according to the team's agreement.Using Loader allows the framework to define default configurations according to different environments, and can also override Egg's default conventions.
- The original team of Express built Koa, and Ali packaged Egg based on Koa. The naming and functions of the framework are in line with Ali's corporate culture: egg is literally translated as egg, lightweight and concise, fully functional, free and open source, withAll the characteristics of a complete life, born to incubate great Internet companies.
边栏推荐
- SVG big fish eat small fish animation js special effects
- Chapter 12 Bayesian Networks
- v-if/v-else determines whether to display according to the calculation
- 餐饮大单品「真香」,却没有穿透周期的能力
- What is the connection and difference between software system testing and acceptance testing? Professional software testing solution recommendation
- The Coolest Kubernetes Network Solution Cilium Getting Started Tutorial
- Stored procedure writing experience and optimization measures
- 向美国人学习“如何快乐”
- Three solutions to solve cross-domain in egg framework
- 高效使用数码相机的诀窍
猜你喜欢
随机推荐
ps怎么拼图,自学ps软件photoshop2022,PS制作拼图效果
别把你的天使弄丢了
[Structure internal power practice] Structure memory alignment (1)
unity urp 渲染管线顶点偏移的实现
【 a daily topic 】 1403. The increasing order of the sequence, boy
SQL SERVER on master-slave table trigger design
iptables实现网络限制下ntp自定义端口同步时间
爱情是一部忧伤的乐曲
关于MP3文件中找不到TAG标签的问题
pnpm 是凭什么对 npm 和 yarn 降维打击的
Stored procedure writing experience and optimization measures
P1160 队列安排
8.4模拟赛总结
基于 Docker 快速使用远程(云)数据库
DataFrame insert row and column at specified position
监听浏览器刷新操作
D2--FPGA SPI接口通信2022-08-03
软件系统测试和验收测试有什么联系与区别?专业软件测试方案推荐
达梦数据库大表添加字段
v-if/v-else根据计算判断是否显示








