
A assistant for wanfang team
# web
cd WFTeam
# install dependencies
npm install
# Compiles and hot-reloads for development
npm run serve
# Compiles and minifies for production
npm run build
# Run your tests
npm run test
# Lints and fixes files
npm run lint
# 设置MongoDB环境变量
export MONGODB_CONNECTION=127.0.0.1:27017/wfteam
# server
cd server
# install dependencies
npm install
# serve with hot reload at localhost:8000
npm start
# https://www.npmjs.com/package/swagger
# start the project(restart on changes)
swagger project start
# open Swagger editor for this project
swagger project edit
# build
cd WFTeam
docker build -f Dockerfile -t wfteam:latest .
# deploy & run
docker run --name wfteam -p 8000:8000 -e "MONGODB_CONNECTION=127.0.0.1:27017/wfteam" -d wfteam:latest
docker start wfteam
建议使用淘宝NPM源:
npm config set registry https://registry.npm.taobao.org
Content type
Image
Digest
Size
33.3 MB
Last updated
over 7 years ago
docker pull hueidou/wfteam