- Make sure
npm
is available. If not, install Node.js. - Make sure
tsc
is available. If not install TypeScript:npm install -g typescript
- Install dependencies:
npm install
- Make sure
docker
is available. If not, install Docker. - Build image:
npm run build:docker
- Run app and see usage:
docker run poker-cli
- Example:
docker run poker-cli compare "TS JS QS KS AS" "KS 2H 2D JD TD"
- Build app:
npm run build
- Link build
npm link poker-cli
- Run app and see usage:
poker-cli
- Example:
poker-cli compare "TS JS QS KS AS" "KS 2H 2D JD TD"
- No build required (tests are ran directly through
ts-node
). - Run tests:
npm run test