hyxfish27 / AttackOnGame

聚人 AttackOnGame
https://attack-on-game.vercel.app
1 stars 2 forks source link

聚人 AttackOnGame

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

安裝指南

Node Version

v18.20.2
nvm use 18.20.2

取得專案

git clone git@github.com:hyxfish27/AttackOnGame.git
cd AttackOnGame

安裝套件

npm install

運行專案

npm run dev

格式化 src路徑下所有代碼

npm run format

使用 Prettier 工具格式化 src路徑下所有代碼。

風格檢查 src路徑下所有代碼

npm run lint

使用 eslint 工具做代碼檢查,檢查不合規範的代碼。

團隊開發-命名規則

  1. constant(常數): 全大寫英文,使用下底線(_)連接

    const MAX_COUNT = 10;
    const API_URL = 'https://api.github.com';
  2. variable:lowerCamel

    const phoneNumber = '0912345678';
    const userName = 'John';
  3. function:lowerCamel

    function getUser() {}
    function createUser() {}
    function editUser() {}
    function deleteUser() {}
  4. type:UpperCamel

    class BoardGame {}

    TODO 待確認

  5. interface:UpperCamel

    interface BoardGame {}
  6. 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 {}
    }
  7. 布林值字詞:使用 is or has 開頭

    const isEmpty = false
    const hasFood = true