--- tags: Work --- # Work Info ## 安裝 https://hackmd.io/iETJDvBmQrGHgXRYWukj4w ## 開啟 1. open Folder: PortalServer, Client 2. command: npm run start 3. check - PortalServer | DB connection info ( in database.ts , 確認 host 跟 Server 網路一樣 ) - Client | 確認 webServerURL ( in common.ts ) 4. 常見錯誤: - PortalServer | entities 需要跟 DB 同步 ( 下指令: npm run db,會自動同步 ) - PortalServer | Table 需要 primary key (ALTER TABLE gamedb.[tableName] ADD PRIMARY KEY ([columnName])) 5. 資訊 - MySQL資訊 - hostname: 跟 Server 網路一樣 - name: kitty - password: pink - 登入URL:http://localhost:4200/login/user - 登入資訊: - Account: Pig - Password: pigpig - 設定URL:http://localhost:4200/provider - SwaggerURL: http://localhost:3000/api/docs/ ( when running PortalServer ) # Portal Flow - User Login - dashboard - all games list -> 開始遊戲 - stream games list -> 觀看遊戲 - Provider - Create game - Modify config - Game console - Download APK