app:项目的核心目录,存放开发的业务逻辑和数据库的操作。
config:对Egg.js的一些插件进行配置。
test:进行单元测试时,使用的。
package.json中在scripts下有两个启动命令start和dev,dev比较适合在开发环境中使用,start适合在实际生产项目中使用。
logs / run / typings ???
```md
➜ egg-app git:(master) ✗ tree -L 3 -I "node_modules"
.
├── README.md
├── app
│ ├── controller
│ │ └── home.js
│ ├── public
│ └── router.js
├── app.sh
├── appveyor.yml
├── config
│ ├── config.default.js
│ └── plugin.js
├── dev.sh
├── jsconfig.json
├── logs
│ └── egg-app
│ ├── common-error.log
│ ├── egg-agent.log
│ ├── egg-app-web.log
│ ├── egg-schedule.log
│ └── egg-web.log
├── package.json
├── run
│ ├── agent_config.json
│ ├── agent_config_meta.json
│ ├── agent_timing_56210.json
│ ├── application_config.json
│ ├── application_config_meta.json
│ ├── application_timing_56229.json
│ └── router.json
├── test
│ └── app
│ └── controller
├── typings
│ ├── app
│ │ ├── controller
│ │ └── index.d.ts
│ └── config
│ ├── index.d.ts
│ └── plugin.d.ts
└── yarn.lock
14 directories, 26 files
➜ egg-app git:(master) ✗
```
npx create-
npm init
yarn create
https://www.cnblogs.com/xgqfrms/p/12547644.html
***
nrm & nvm
开四岁时的入门服务
很棒的课程了
这是一个很好的课程