Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/s1lvax/gamingfacts

🎮 a simple api which returns an interesting fact about gaming
https://github.com/s1lvax/gamingfacts

go goapi golang learning-by-doing

Last synced: about 1 month ago
JSON representation

🎮 a simple api which returns an interesting fact about gaming

Awesome Lists containing this project

README

        

# Gaming Facts

![logo_api](https://github.com/s1lvax/gamingfacts/assets/113994636/20f19a28-0be6-46c3-9a96-674b4a59b446)

## Description

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.

### Example Usage

```bash
curl https://gamingfacts.cfsilva.com/
```

Response

```json
{
"fact": "‘Pac-Man’ was designed to attract female gamers, which led to the character’s round shape and love for eating."
}
```

### Limitations

The API is limited to `20 requests per minute`.

### Documentation

[](https://rapidapi.com/s1lvax/api/gaming-facts)

## Deployment

The API is deployed on a VPS using Docker and Nginx.

## Local Development

Clone the repository

```bash
git clone https://github.com/s1lvax/gamingfacts
```

Install dependencies

```bash
go mod download
```

Run API

```bash
go run main.go
```