Wouterbeets / fizzbuzz-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fizzbuzz

A small fizzbuzz API implementation with a clean architecture using go, postgresql, redis, pgadmin and a supertest/jest tester. (docker-compose)

Usage

source env.sh
docker-compose up -d

Api

The API is accessible on localhost:8080.

You will find the postam collection from the fizzbuzz.postman_collection.json exported file.

You will also find the API documentation here.

Database

docker-compose exec postgres psql # to access the postgres cli (psql)
docker-compose exec redis sh -c 'redis-cli -h redis' # to access the redis cli

Pgadmin is accessible on localhost:5050.

screenshot screenshot

supertest

The API synchronous tester is built with supertest/jest on node.js.

docker-compose run --rm supertest

The test erase all data on postgresql and redis!

screenshot

About


Languages

Language:Go 66.5%Language:JavaScript 30.7%Language:Dockerfile 1.9%Language:Shell 1.0%