Windows部署YAPI詳細步驟
依賴環境(yapi檔案放在你的任意位置沒有要求)
node.js:https://nodejs.org/en/
Mongodb:https://www.mongodb.com/try
YAPI:https://gitee.com/mirrors/YApi
GIT:https://git-scm.com/downloads
到YApi 目錄右鍵:Git Bash Here
輸入以下指令
npm install -g yapi-cli --registry https://registry.npm.taobao.org
yapi server
填寫公司名什麼都不用改,後面可以改(資料庫預設27017)部署完成會出現賬号密碼記得儲存
進入vendors根目錄右鍵:Git Bash Here
輸入指令
node server/app.js
如何改變請求端口
綜合問題以及解決方案:http://www.360doc.com/content/20/0403/06/46368139_903522829.shtml