/admin-server

动态权限控制+任务调度系统

Primary LanguageJavaScript

admin-server

QuickStart

see egg docs for more detail.

Development

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

Deploy

$ npm start
$ npm stop

Docker Deploy

# 构建镜像
docker build -t `镜像名`:tag .
# 由于在项目中使用了hosts,所以需要需要在启动的时候追加数据库指向,也可在项目配置中将其修改成IP
docker run -itd --net=host --name admin-server --add-host=adminDemodb:<数据库地址> admin-server

npm scripts

  • 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.