Skip to content

olegbespalov/tservice-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is an example of usage TService. TService is the test-service, a fake API that you can use to mock third-party API. It's developed lightweight, has no dependency on any programming language or framework. It can define service slowness emulate service errors. Config or responses changes on the fly without any service restarting.

Installation and usage

To launch it, run:

docker-compose up

You can also include the service in your existing compose using docker hub's image

tservice:
   image: docker.io/letniy/tservice:latest
   ports:
      - "8085:8085"
   volumes:
      - ./configs:/configs
   networks:
      app_net:
   entrypoint: ["/bin/app", "-config", "/configs/config.yml", "-responsePath", "/configs/responses", "-port", "8085"]

Source code is available in github.com/olegbespalov/tservice

Configuration

An example of the configuration you can find in the configs directory.

License

The TService package is licensed under the MIT. Please see the LICENSE file for details.

About

Minimalistic example of the usage of the TService

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published