Skip to content

braboj/randomgen

Repository files navigation

Test Application Deploy Image Deploy Pages

Overview

This project provides a simple REST API for generating random numbers. It is built using Python and the Flask framework. The application is packaged as a Docker image, making it easy to run on any platform that supports Docker.

Installation

To get started, you need to install Docker. You can find the installation instructions here. After that, you can run the following command to get the project image:

docker pull braboj/randomgen:latest

And finally, you can run the following command to start the project:

docker run -p 8080:8080 braboj/randomgen:latest

To access the project, open your browser and go to http://localhost:8080. A simple page will be displayed with the endpoints available. As a quick example, use the following link to create 100 random numbers:

http://localhost:8080/api/v1/randomgen?numbers=100

Next Steps