see egg docs for more detail.
$ npm i
$ npm run dev
$ open http://localhost:7002/
$ npm start
$ npm stop
# 构建镜像
docker build -t `镜像名`:tag .
# 由于在项目中使用了hosts,所以需要需要在启动的时候追加数据库指向,也可在项目配置中将其修改成IP
docker run -itd --net=host --name admin-server --add-host=adminDemodb:<数据库地址> admin-server
- 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.