random-http-cats

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0

README

Random HTTP Cats

Description

This is a small Gin server named random-http-cats that retrieves a random HTTP status from https://http.cat/.

Installation

To get a development environment running, clone the repository and navigate into the directory:

git clone <repository-link>
cd <repository-directory>

Then, install the dependencies:

go mod download

Usage

To start the server, run:

go run main.go

Or you can build the project using the Makefile:

make build

And then run the generate binary:

./random-http-cats
Docker

The application is also containerized using Docker. You can build and run the Docker image with:

docker build -t random-http-cats .
docker run -p 8080:8080 random-http-cats

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL