Sign inSign up

psynapse/mock-api

By psynapse

•Updated almost 7 years ago

Mock API server repo: https://github.com/GaryLouisStewart/LearningGo/tree/master/mock-api

Image
0

171

psynapse/mock-api repository overview

⁠Mock API Server

⁠The following is a mock-api server written in googles golang programming language. It is intended to be used for whatever purposes you see fit. I have listed the tools below that you will need in order to get started.

⁠Instructions for building this docker image locally:
  • Clone the following github repo: https://github.com/GaryLouisStewart/LearningGo⁠
  • Browse to the mock-api folder
  • Modify the docker image to your specifications
  • Run the following command docker build -t <tag_name> . from that folder and replace the <tag_name> with the desired name of the image
⁠Details of service
  • port = 1111, this service exposes itself on port 1111 this is built into the application and exposed on the dockerfile, this is also the port you can query for an api-response with postman or another client.
  • go-version: this image builds ontop of the golang-1.13-alpine docker image on dockerhub, details available here https://hub.docker.com/_/golang/⁠
  • this is a basic service which can be run in docker, kubernetes or on a container platform/orchestrator which supports the docker-image format or Dockerfile format.
  • This Image is maintained by Gary Louis Stewart https://github.com/GaryLouisStewart⁠

Tag summary

Content type

Image

Digest

Size

126.4 MB

Last updated

almost 7 years ago

docker pull psynapse/mock-api