![Logo](https://github.com/babakjalilian/poker/raw/main/src/textures/card_image.png)
Bet on the go in one of the most popular types of poker!
View Demo
·
View Storybook
·
Report Bug
Texas Hold 'em is a popular version of Poker played by two people or more. The rules are complex, especially when it comes to pot sharing. Yet, the game tries to use a short but efficient logic in winner-determination and sharing the pot, if needed. You can see the rules here. This online application is a Hotseat implementation of the game, meant to be played locally. In a Hotseat version, players take turns playing on the same device.
- Node.js v18 (and npm)
- TypeScript v5 or later
-
Clone the repo
git clone https://github.com/babakjalilian/poker.git
-
Navigate into the local repository and install NPM packages (might take a few minutes).
npm install
-
Run
npm run start
to start a dev server. Navigate tohttp:https://localhost:5173/
. The page will automatically reload if you change any code in the source files.
Navigate into the local repository, then:
- use the following command to run unit tests:
npm run test
- use the following command to run UI tests on Storybook:
npm run storybook
- use the following command to fix esLint errors:
npm run lint:fix
- use the following command to build application:
npm run build
- use the following command to build storybook:
npm run build-storybook
- This repository is using GitHub Actions for the build and deployment.
(From
main
to thegithub-pages
branch.) Application and storybook deployment is automated and will be updated every time you push tomain
branch, but you can deploy storybook manually using the following command:
npm run chromatic
Distributed under the MIT License. See LICENSE.txt
for more information.
Email: [email protected]