Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 748 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 748 Bytes

stats-generator

v 1.0.0

This microservice generates any number of sample data points with uniform or normal distribution.

It listens on port 8000, and expects an HTTP POST request to the root directory and returns a json object containing the data.

The body of the POST request should contain the following json:

{
distribution: <string in "normal", "uniform">, 
params: { min: <positive int>, max: <positive int>, [alpha: <float>]}, 
multiplicity: <positive int>
}

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer.

Once installed, use the command npm start to start the service.