当前位置:网站首页>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.
边栏推荐
- 手机上流行的各类谜语
- What is a good movie to watch on Qixi Festival?Crawl movie ratings and save to csv file
- 原型&原型链
- Fiddler工具讲解
- TensorFlow installation steps
- 基于 Docker 快速使用远程(云)数据库
- Ethernet Principle
- MySQL database error The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
- 行走社会100绝招
- How to make pictures clear in ps, self-study ps software photoshop2022, simple and fast use ps to make photos clearer and more textured
猜你喜欢
Ethernet Principle
spark集群部署(第三弹)
SVG大鱼吃小鱼动画js特效
【结构体内功修炼】结构体内存对齐(一)
Redis实现分布式锁-原理-问题详解
Pagoda measurement - building small and medium-sized homestay hotel management source code
利用Jenkins的持续集成
【结构体内功修炼】结构体实现位段(二)
MySQL database error The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
Chapter 12 贝叶斯网络
随机推荐
Controller-----controller
P1160 队列安排
生命的颜色占卜
RedisTemplate: error template not initialized; call afterPropertiesSet() before using it
v-if/v-else根据计算判断是否显示
软件系统测试和验收测试有什么联系与区别?专业软件测试方案推荐
Spark cluster deployment (third bullet)
Pagoda measurement - building small and medium-sized homestay hotel management source code
基于多块信息提取和马氏距离的k近邻故障监测
Ethernet Principle
七夕看什么电影好?爬取电影评分并存入csv文件
What is the connection and difference between software system testing and acceptance testing? Professional software testing solution recommendation
ps怎么替换颜色,自学ps软件photoshop2022,ps一张图片的一种颜色全部替换成另外一种颜色
8.4模拟赛总结
The Coolest Kubernetes Network Solution Cilium Getting Started Tutorial
Moonbeam团队发布针对整数截断漏洞的紧急安全修复
【 a daily topic 】 1403. The increasing order of the sequence, boy
RedisTemplate: 报错template not initialized; call afterPropertiesSet() before using it
彩绘漂亮MM集
Insights in programming