A simple api that returns a random interesting fact about videogames/gaming.
I wholeheartedly believe in learning-by-doing, so this is my first step into learning Go.
curl https://gamingfacts.cfsilva.com/
Response
{
"fact": "‘Pac-Man’ was designed to attract female gamers, which led to the character’s round shape and love for eating."
}
The API is limited to 20 requests per minute
.
The API is deployed on a VPS using Docker and Nginx.
Clone the repository
git clone https://github.com/s1lvax/gamingfacts
Install dependencies
go mod download
Run API
go run main.go