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

egg框架中解决跨域的三种方案

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

Chapter 12 Bayesian Networks

学习笔记14--机器学习在局部路径规划中的应用

ps怎么拼图,自学ps软件photoshop2022,PS制作拼图效果

uniapp time component encapsulates year-month-day-hour-minute-second

图扑软件与华为云共同构建新型智慧工厂

Redis cache and existing problems--cache penetration, cache avalanche, cache breakdown and solutions

Fiddler工具讲解

关于MP3文件中找不到TAG标签的问题
随机推荐
P1160 队列安排
Access Denied: "microsoft.web.ui.webcontrols" workaround
Ethernet Principle
控制器-----controller
iptables实现网络限制下ntp自定义端口同步时间
Nn. Unfold and nn. The fold
DataFrame在指定位置插入行和列
egg框架
Moonbeam团队发布针对整数截断漏洞的紧急安全修复
随机码的生成
网络安全研究发现,P2E项目遭遇黑客攻击只是时间问题
The magic weapon for small entrepreneurs!
基于多块信息提取和马氏距离的k近邻故障监测
unity urp 渲染管线顶点偏移的实现
php向mysql写入数据失败
C语言制作-QQ聊天室
【结构体内功修炼】结构体内存对齐(一)
What is the connection and difference between software system testing and acceptance testing? Professional software testing solution recommendation
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
Jmeter永久设置中文界面