当前位置:网站首页>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.
边栏推荐
猜你喜欢

Ethernet Principle

DataFrame在指定位置插入行和列

TensorFlow安装步骤

Fiddler工具讲解

php向mysql写入数据失败

spark集群部署(第三弹)

What is a good movie to watch on Qixi Festival?Crawl movie ratings and save to csv file

数据源对象管理Druid和c3p0

Redis缓存以及存在的问题--缓存穿透、缓存雪崩、缓存击穿及解决方法

How to make a puzzle in PS, self-study PS software photoshop2022, PS make a puzzle effect
随机推荐
软件系统测试和验收测试有什么联系与区别?专业软件测试方案推荐
Win10 设置锁屏壁纸提示尝试其它图片
Access Denied: "microsoft.web.ui.webcontrols" workaround
uniapp时间组件封装年-月-日-时-分-秒
CROS和JSONP配置
手机上流行的各类谜语
What is a good movie to watch on Qixi Festival?Crawl movie ratings and save to csv file
Long-term recruitment embedded development-Shenzhen Baoan
How to make a puzzle in PS, self-study PS software photoshop2022, PS make a puzzle effect
Moonbeam团队发布针对整数截断漏洞的紧急安全修复
利用Jenkins的持续集成
【深度学习实践(一)】安装TensorFlow
撕裂寂寞
每一个女孩曾经都是一个没有泪的天使
星座理想情人
【结构体内功修炼】结构体实现位段(二)
宝塔实测-搭建中小型民宿酒店管理源码
向美国人学习“如何快乐”
Basic introduction of stack and queue and C language implementation of functions such as creation, destruction, entry and exit, counting the number of elements, viewing elements, etc., as well as stac
Fiddler tool explanation