To run this, do the following:
-
In terminal, go run main.go
-
Once you get the confirmation that the localhost server is up, run the following commands:
-
curl X -GET http://localhost:8080/random-historical-fact
-
curl X -GET http://localhost:8080/random-joke
-
curl X -GET http://localhost:8080/random-capital