Skip to content

koeniglorenz/bwaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buzzwords as a Service (BwaaS)

pipeline status

A simple HTTP server that responds to requests with a randomly generated concatenation of buzzwords that (probably) doesn't make any sense.

The server either responds with HTML or with JSON, when setting the Accept-Header of the request to application/json

Buzzwords

The buzzwords are stored in a simple json file with the following structure:

{
	"adj": [
      // adjectives like "Hosted or Automated"
	],
	"sub": [
      // nouns like "IoT" or "Big Data"
	],
	"app": [
      // appendices like "as a service"
	]
}

Every time a request is processed, a random combination of one of these three categories is generated.
Feel free to add buzzwords and open a pull request!

Running locally on premise

For running locally on premise either golang (1.11) is required or the docker runtime.

golang

go build -o bwaas ./cmd/main.go
./bwaas --buzzwords ./buzzwords.json

After starting the webserver is listening on port 8080 for requests.
The command-line-flag buzzwords is for passing the path to the buzzwords-JSON-file.
The flag is optional and defaults to buzzwords.json.

docker

docker build -t koeniglorenz/bwaas .
docker run -d -p 8080:8080 koeniglorenz/bwaas

By default the container exposes port 8080, so this port can be mapped to any port on your local machine.

Running in the cloud (as a service)

BwaaS is (as the name suggests) also available as a service in the cloud: https://bwaas.koenigreich.me