see egg docs for more detail.
$ npm i
$ npm run dev
$ open http://localhost:7001/
- 安装 nginx
- 安装 node
- 安装 MongoDB
在 MongoDB 数据库中插入超管账户
db.teachers.insert({
username: 'admin',
password: '14e1b600b1fd579f47433b88e8d85291',
real_name: '管理员',
gender: 0,
join_date: '2017-12-24',
type: 0
})
$ 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.