Small web application that wraps the famous FizzBuzz problem into a nice REST API.
- Python 3.7
pip install -r requirements.txt
Here is how to run the app in both development and production mode.
export FLASK_APP=src/app.py
export FLASK_ENV=development
flask run
The development app should be available on port 5000:
curl localhost:5000/api/fizzbuzz/13
DO NOT ACTUALLY USE THIS IN PRODUCTION, THIS IS SIMPLIFIED FOR DEMONSTRATION PURPOSES
export FLASK_APP=src/app.py
export FLASK_ENV=production
flask run
The development app should be available on port 5000:
curl localhost:5000/api/fizzbuzz/13
To run the small test suite, use:
python -m unittest tests/test_fizzbuzz.py -v