routes-service

command module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

README

routes-service

Run

You can find compiled binaries on the Release section.

Go install
go install github.com/shoriwe/routes-service@latest

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

routes-service 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/routes-service:latest

Documentation

You will find the entire documentation for this project at docs/.

File Description
docs/README.md Detailed description of the documentation files.
CONTRIBUTING.md Rules for contributing to this repository. Including commit nomenclature, code quality and more.
CHANGELOG.md This file is autogenerated by the Build Action's pipeline, should never be modified manually.

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

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