The frontend of the Game as a Service lobby.
# Host by Yarn
1. yarn
2. yarn dev
# Host by Docker
1. Install Docker and Docker compose
2. docker compose build
3. docker compose up
# Lint
yarn pre-commit
# Runs All Test
yarn test
## Unit Test
yarn unit-test
### Test single files/folder
yarn jest $PATH
## E2E Test
yarn e2e-test
# Storybook
yarn storybook
如何在自己的本地跑前端專案,並連接 webSocket
# 調整 .env.development file
# 後端 RESTful API 的 url
NEXT_PUBLIC_INTERNAL_ENDPOINT=
# 後端 Socket 的 url
NEXT_PUBLIC_INTERNAL_SOCKET_ENDPOINT=
# 取消前端 Mock Data
NEXT_PUBLIC_MOCK=false
# 使用 yarn install dependencies
# 如果出現 Error 可以改成使用 yarn install 下載
yarn
# 啟動專案
yarn dev
feature/ticket-name
git checkout -b feature/[ticket-name]
feat: ticket-name
這樣在 Github Projects 就能看到原本的 User Story 跟 Sprint 過程中多做的 bugs,如果這週沒辦法完成的就開 Issues 在下次開會時納入討論
Made with contrib.rocks.