my first egg project for nux1
see egg docs for more detail.
$ npm i
$ npm run dev
$ open https://localhost:7001/
$ npm start
$ npm stop
- Use
npm run lint
to check code style. - Use
npm test
to run unit test. - Use
npm run autod
to auto detect dependencies upgrade, see autod for more detail.
model文件夹下的js文件 article.js - 对应 mongodb 数据库中的数据表 articles user.js - 对应 mongodb 数据库中的数据表 users