無家者小幫手專案之後端API
- 安裝相依套件
yarn install- 複製設定檔 (如要啟動自動寄信,請參考啟用自動寄信之說明)
cp config.js.example config.js- 以Development Mode啟動Server,當原始碼被修改時會自動重啟server
yarn dev- 或是,以Production Mode啟動Server
# 開始
yarn start
# 停止
yarn stop- 複製設定檔 (如要啟動自動寄信,請參考啟用自動寄信之說明)
cp config.js.example config.js- 建立本專案的docker images
docker-compose build- 運行服務
docker-compose up