Skip to content

babakjalilian/poker

Repository files navigation


Logo

Texas Hold 'em

Bet on the go in one of the most popular types of poker!
View Demo · View Storybook · Report Bug

Github Action and Chromatic license

About the Project

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.

Built with

Getting Started

Prerequisites

Installation

  1. Clone the repo

    git clone https://github.com/babakjalilian/poker.git
  2. Navigate into the local repository and install NPM packages (might take a few minutes).

    npm install
  3. Run npm run start to start a dev server. Navigate to http:https://localhost:5173/. The page will automatically reload if you change any code in the source files.

Test

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

Lint

  • use the following command to fix esLint errors:
     npm run lint:fix

Production and Deployment

  • 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 the github-pages branch.) Application and storybook deployment is automated and will be updated every time you push to main branch, but you can deploy storybook manually using the following command:
   npm run chromatic

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Babak Jalilian

Email: [email protected]

LinkedIn: https://www.linkedin.com/in/babak-jalilian/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages