fizzbuzz

command module
v0.0.0-...-d40ee67 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

README

Fizzbuzz Golang implementation

Introduction

This project is a litte fizzbuzz (https://en.wikipedia.org/wiki/Fizz_buzz)server implementation. You can use as standalone app or as a docker image.

Requirements

You will need at least a docker installation on your computer (https://www.docker.com/get-started). If you want to install the standalone application, you will need a golang installation (https://golang.org)

Configuration

You can manage the listen port of the HTTP server. In the standalone app before runnnig, export as environnement variable : export PORT="8080". In the docker version, modify in the head of the makefile file, the variable HTTP_PORT to the desired PORT. And run by make docker-run. You can also choose your persistence such as in memory or in database. To configure this property set the environnement variable PERSISTENCE to MEMORY or DATABASE. Like export PERSISTENCE="DATABASE". By default, in memory is set.

Installation

To get help on command line, just type make help in a terminal.

To build the standalone app type make build.

To build the docker image type make docker. And to run the docker container just type make docker-run.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag

Jump to

Keyboard shortcuts

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