Sign inSign up

hueidou/wfteam

By hueidou

Updated about 6 years ago

A assistant for wanfang team

Image
0

1.9K

hueidou/wfteam repository overview

WFTeam

logo

A assistant for wanfang team

Build Status dependencies Status devDependencies Status

开发

# 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

Swagger

# 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

Tag summary

Content type

Image

Digest

Size

33.3 MB

Last updated

over 7 years ago

docker pull hueidou/wfteam