Fizz buzz is a group word game for children to teach them about division. ... Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".
docker run --rm -d -p 3000:3000 ledniy:/fizzbuzz-demo:latest
- Install nodemon
npm i -g nodemon
- Install dependencies
npm i
- Run app
nodemon src/boot.js
To run tests just execute npm run test
- Setup docker and gcloud
- Build image
docker build --tag gcr.io/${projectName}/fizzbuzz-demo:latest .
- Run locally
docker run --rm -d -p 3000:3000 gcr.io/${projectName}/fizzbuzz-demo:latest
- Push image to registry (gcr in our case)
docker push gcr.io/${projectName}/fizzbuzz-demo:latest
- Deploy to Cloud Run
gcloud run deploy ${serviceName} --image gcr.io/${projectName}/fizzbuzz-demo:latest --platform managed
curl --location --request POST 'http://localhost:3000/fizzbuzz' \
--header 'Content-Type: application/json' \
--data-raw '{ "count": 15 }'
- Linter
- Prettier
- CI/CD