The project provides 2 HTTP endpoints
/even
that returns an even number sequentially from 0/random
that returns a random positive number
Run
docker run -i --rm --publish 5000:5000 docker.pkg.github.com/extsoft/numbers-api/app:latest
and open either http://localhost:5000/even or http://localhost:5000/random in a browser.
If you need some specific version of the Docker image, please go to https://github.com/extsoft/numbers-api/packages.
Production tools
- Python 3.8
- Flask
Development tools
Almost all development actions are implemented on workflows.sh
script. Run ./workflows.sh help
to see
all commands. Some of them are:
./workflows.sh install_all_packages
installs packages for development./workflows.sh style_code
formats the code./workflows.sh quality_pipeline
runs all assessments (aka CI workflow)