git clone https://github.com/stylelinz/forum-express-grading
cd forum-express
git remote add upstream https://github.com/ALPHACamp/forum-express-grading.git # 建立上游連線
npm install
需要與 config/config.json 一致
create database forum;
create database forum_test;
export NODE_ENV=test # 切換到測試環境,如果在等號後加其他的字串,則會切到其他的環境
echo $NODE_ENV # 印出目前使用的環境
npm run test
以 A17 為例
git checkout -b A17 # 開新分支
git merge origin/A17-test # 下載作業規格
npm run test # 直到綠燈全亮
git add .
git commit -m "...."
git push origin A17 # 上傳本地進度
接著改成到 GitHub 來發 PR。
請一律設定一個共用的 root user [email protected],登入密碼 12345678