https://github.com/ccoeurderoy/nodejs-nba-winamax
A little prompt script calculating Winamax Score using NBA stats.
https://github.com/ccoeurderoy/nodejs-nba-winamax
inquirerjs nba nodejs ts-node typescript winamax
Last synced: about 1 year ago
JSON representation
A little prompt script calculating Winamax Score using NBA stats.
- Host: GitHub
- URL: https://github.com/ccoeurderoy/nodejs-nba-winamax
- Owner: ccoeurderoy
- Created: 2020-03-13T08:48:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-08T14:35:40.000Z (about 3 years ago)
- Last Synced: 2025-02-12T15:22:04.742Z (over 1 year ago)
- Topics: inquirerjs, nba, nodejs, ts-node, typescript, winamax
- Language: TypeScript
- Homepage:
- Size: 447 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeJS NBA Winamax score calculator
[](https://app.codacy.com/manual/charlescoeurderoy/nodejs-nba-winamax?utm_source=github.com&utm_medium=referral&utm_content=ccoeurderoy/nodejs-nba-winamax&utm_campaign=Badge_Grade_Dashboard)
A little prompt asking you to select a game and a user to calculate [Winamax](https://www.winamax.fr/jde) score.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
You need to install [NodeJS](https://nodejs.org/en/download/) on your local machine and clone this repository running:
```bash
git clone https://github.com/ccoeurderoy/nodejs-nba-winamax.git
```
### Installing
First, install node modules running:
```bash
npm install
```
### Usage
To run the prompt script, run:
```bash
npm start
```
It will run the `index.ts` file using [ts-node](https://github.com/TypeStrong/ts-node) library. If you want to run the compiled JavaScript file, simply run:
```bash
npm run start:oldschool
```
It will then ask you to enter a date and will look for NBA games. After selecting a game, select a player. The Winamax score will then be displayed.
### Coding Style
This project has been set up with [prettier](https://prettier.io/).
## Built With
* [TypeScript](https://www.typescriptlang.org/) - Typed JavaScript
* [Lodash](https://lodash.com/) - JavaScript utility library
* [Moment.js](https://momentjs.com/) - Date manipulation library
* [Inquirer.js](https://github.com/SBoudrias/Inquirer.js/) - A command line user interface
* [NBA](https://github.com/bttmly/nba) - A NodeJS Client for [stats.nba.com](https://stats.nba.com)
* [Pino](https://getpino.io/#/) - A NodeJS logger library
## Contributing
This module uses [semantic-release](https://github.com/semantic-release/semantic-release), please follow these [instructions](https://github.com/semantic-release/commit-analyzer#default-rules-matching) to contribute to the project or use `npm run commit`.