https://github.com/jigarius/fizz-buzz-typescript
Exploring Typescript with fizz-buzz.
https://github.com/jigarius/fizz-buzz-typescript
example fizz-buzz typescript
Last synced: 10 months ago
JSON representation
Exploring Typescript with fizz-buzz.
- Host: GitHub
- URL: https://github.com/jigarius/fizz-buzz-typescript
- Owner: jigarius
- Created: 2021-01-02T18:03:53.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T17:09:51.000Z (over 3 years ago)
- Last Synced: 2025-02-05T20:54:28.074Z (12 months ago)
- Topics: example, fizz-buzz, typescript
- Language: TypeScript
- Homepage:
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fizz Buzz: TypeScript
A neat command-line application to demonstrate TypeScript syntax.
## What is Fizz Buzz?
**Fizz buzz** is a group word game for children to teach them about division.
Players take turns to count incrementally, with the following rules:
* For numbers divisible by `3`, say `fizz`.
* For numbers divisible by `5`, say `buzz`.
* For numbers is divisible by both, say `fizzbuzz`.
* For other numbers, say the number.
## Example
```
1
2
fizz
4
buzz
fizz
7
8
fizz
10
11
fizz
13
14
fizzbuzz
```
## Usage
* Clone the repository and `cd` into the directory.
* Run `npm install` to install node packages.
* Run `tsc` to generate `dist/*.js` files.
* Run `npm run-script fizzbuzz` with a numeric argument; `npm run-script fizzbuzz 15`.
### Docker Compose
To deploy the project on a dockerized environment,
* Clone this repository and `cd` into the directory.
* Run `docker compose up -d`.
* Run `make ssh`.
Now you can run the application as mentioned in the _Usage_ section.