Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/s1lvax/gamingfacts
- Owner: s1lvax
- License: mit
- Created: 2024-03-08T12:24:43.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-11T14:38:43.000Z (10 months ago)
- Last Synced: 2024-03-12T15:58:48.095Z (10 months ago)
- Topics: go, goapi, golang, learning-by-doing
- Language: Go
- Homepage: https://gamingfacts.cfsilva.com
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```