An open API service indexing awesome lists of open source software.

https://github.com/raulpe7eira/fizz_buzz

Section 2 of Elixir e Phoenix do Zero Course by Rafael Camarda
https://github.com/raulpe7eira/fizz_buzz

course elixir learn udemy

Last synced: about 1 month ago
JSON representation

Section 2 of Elixir e Phoenix do Zero Course by Rafael Camarda

Awesome Lists containing this project

README

        

# FizzBuzz

This code corresponds to the [Section 2 of Elixir e Phoenix do Zero Course](https://www.udemy.com/course/elixir-e-phoenix-do-zero) lab by [Rafael Camarda](https://cursos.rafaelcamarda.com/).

> The project simulates the processing of a txt files, and replaces all numbers that are multiples of 3 with `:fizz`, multiples of 5 with `:buzz`, and multiples of 3 and 5 with `:fizzbuzz`.

## Compilation, tests and runs

```bash
$ cd fizz_buzz
$ asdf install
$ mix compile
$ mix test
$ iex -S mix
```

## How to use?

```elixir
# build numbers with :fizz, :buzz, and/or :fizzbuzz
iex> FizzBuzz.build("numbers.txt")
```