Skip to content

lincy-chu/egg-learn

Repository files navigation

详细介绍请参考下列链接

  1. 一文看懂egg.js-基础全面讲解(上)
  2. 一文看懂egg.js-基础全面讲解(中)
  3. 一文看懂egg.js-基础全面讲解(下)
  4. 一文看懂egg.js-基础全面讲解(完结)

egg-sequelize连表查询

1.egg-sequelize连表查询

hackernews-async-ts

Hacker News showcase using typescript && egg

QuickStart

Development

$ npm i
$ npm run dev
$ open http://localhost:7001/

Don't tsc compile at development mode, if you had run tsc then you need to npm run clean before npm run dev.

Deploy

$ npm run tsc
$ npm start

Npm Scripts

  • Use npm run lint to check code style
  • Use npm test to run unit test
  • se npm run clean to clean compiled js at development mode once

Requirement

  • Node.js 8.x
  • Typescript 2.8+

文件加载顺序

文件按照下列顺序自上而下加载,egg会遍历所有的loadUnit加载上述文件(应用、框架插件各不相同),加载时有一定的优先级

。按插件 => 框架 => 应用依次加载 。插件之间的顺序由依赖关系决定,被依赖方先加载,无依赖按object key配置顺序加载 。框架按继承顺序加载,越底层越先加载

  • package.json
  • config/plugin.{env}.js
  • app/extend/applications.js
  • app/extend/request.js
  • app/extend/response.js
  • app/extend/context.js
  • app/extend/helper.js
  • agent.js
  • app.js
  • app/service
  • app/middle
  • app/controller
  • app/router.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published