当前位置:网站首页>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.
边栏推荐
- Qt编写自定义控件:文字聚光灯效果之一
- Pagoda measurement - building small and medium-sized homestay hotel management source code
- Version number naming convention
- 常用的遍历map的方法
- How Entrepreneurs Attract Venture Capitalists
- 原型&原型链
- Data source object management Druid and c3p0
- love is a sad song
- v-if/v-else determines whether to display according to the calculation
- 随机码的生成
猜你喜欢
What is a good movie to watch on Qixi Festival?Crawl movie ratings and save to csv file
SVG星球大战样式Toggle切换开关按钮
学习笔记14--机器学习在局部路径规划中的应用
Spark cluster deployment (third bullet)
网络安全研究发现,P2E项目遭遇黑客攻击只是时间问题
SVG big fish eat small fish animation js special effects
Ethernet Principle
v-if/v-else determines whether to display according to the calculation
Redis implements distributed lock-principle-detailed explanation of the problem
MVCC of Google's Fragmented Notes (Draft)
随机推荐
VXE-Table融合多语言
k-nearest neighbor fault monitoring based on multi-block information extraction and Mahalanobis distance
SVG星球大战样式Toggle切换开关按钮
MM上街前的折腾(有趣)
【深度学习实践(一)】安装TensorFlow
Chapter3、色调映射
ps怎么替换颜色,自学ps软件photoshop2022,ps一张图片的一种颜色全部替换成另外一种颜色
Qt编写自定义控件:文字聚光灯效果之一
Thinking after writing a code with a very high CPU usage
unity 头发的渲染
长期招聘嵌入式开发-深圳宝安
行业应用软件项目经理三步曲
在ASP控制数字及字母输入
小本创业者的致胜法宝!
8.4 Summary of the mock competition
Controlling number and letter input in ASP
复现一次循环和两次循环
青苹果论坛重新开放
力扣刷题八月第一天
What is the connection and difference between software system testing and acceptance testing? Professional software testing solution recommendation