rollee-test-2

command module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 8 Imported by: 0

README

rollee-test-2

Build codecov GitHub go.mod Go version Go Report Card

Second test for Rollee.

Run

You can find compiled binaries on the Release section.

Go install
go install github.com/shoriwe/rollee-test-2@latest

After installing the binary you can run a temp server with the database running in memory with:

rollee-test-2 127.0.0.1:5000
Docker compose

A ready to go docker-compose.yaml can be found at the root of the repository

docker compose -f docker-compose.yaml up -d

You can access the service at 127.0.0.1:5000.

Docker image
docker run -p 5000:5000 -d ghcr.io/shoriwe/rollee-test-2:latest

Documentation

File/Directory Description
docs/Readme.md This file contains the challenge to be implemented using Go.
docs/spec.openapi.yaml OpenAPI specification of the REST API.
CHANGELOG.md Autogenerated changelog, by using standard-version and fix, feat and docs commits.
CONTRIBUTING.md This file describe all the specification to properly contribute for this project, including the commits convention to use.
docs/CICD.md This document describes the CICD pipelines present in the repository.
docs/Database.md Database entity relationship diagram.
docs.CLI.md Documentation for the CLI tool.

Testing

Make sure you have the testing PostgreSQL service running. You can setup one easily with:

docker compose -f testing.docker-compose.yaml up -d

Finally:

go test -count=1 -v ./...

Coverage

Sunburst Grid
sunburst grid

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
common
sqlite
sqlite will be only used for unit tests and when no postgres DSN is provided
sqlite will be only used for unit tests and when no postgres DSN is provided

Jump to

Keyboard shortcuts

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