AttackOnGame 聚人 是一個提供一個【桌遊活動銷售】的平台,桌遊店家上架活動,販售票券供玩家選擇,而對於玩家端的角色來說,可以使其在平台上面【付費】參加桌遊團體。廣義的說這是一種店家號召(揪團),玩家依照自由意願選擇是否參加,並藉由【第三方金流】購買相關活動票券。
【玩家1號 : 皓月清涼】
帳號:Leo2728@gmail.com
密碼:Abcd1234
【玩家2號 : Frank】
帳號:Frank2930@gmail.com
密碼:Abcd1234
【店家1號 : PartyTime 派對時光】
帳號:Alice1234@gmail.com
密碼:Abcd1234
【店家2號 : 桌遊貓貓♡派對樂園♡南京店】
帳號:Jack2425@gmail.com
密碼:Abcd1234
首頁
活動列表
店家列表
更多詳情~~盡在*聚局的巨人*聚人*~~
Vue v3.4.21
Vue-router v4.3.0
Pinia v2.1.7
Bootstrap v5.3.3
v18.20.2
nvm use 18.20.2
git clone git@github.com:hyxfish27/AttackOnGame.git
cd AttackOnGame
npm install
npm run dev
npm run format
使用 Prettier 工具格式化 src路徑下所有代碼。
npm run lint
使用 eslint 工具做代碼檢查,檢查不合規範的代碼。
constant(常數): 全大寫英文,使用下底線(_)連接
const MAX_COUNT = 10;
const API_URL = 'https://api.github.com';
variable:lowerCamel
const phoneNumber = '0912345678';
const userName = 'John';
function:lowerCamel
function getUser() {}
function createUser() {}
function editUser() {}
function deleteUser() {}
type:UpperCamel
class BoardGame {}
TODO
待確認
interface:UpperCamel
interface BoardGame {}
css class:kebab-case, BEM
html
<div class="activity-card">
<div class="activity-card__header"></div>
<div class="activity-card__body">
<button class="btn btn--sm">Confirm</button>
</div>
<div class="activity-card__footer"></div>
</div>
scss
.activity-card {
&__header {}
&__body {}
&__footer {}
}
.btn {
&--sm {}
&--md {}
&--lg {}
}
布林值字詞:使用 is or has 開頭
const isEmpty = false
const hasFood = true