https://github.com/asimpleidea/echo-server
  
  
    A simple service to use for demos or debugging 
    https://github.com/asimpleidea/echo-server
  
        Last synced: 5 months ago 
        JSON representation
    
A simple service to use for demos or debugging
- Host: GitHub
 - URL: https://github.com/asimpleidea/echo-server
 - Owner: asimpleidea
 - License: apache-2.0
 - Created: 2021-03-04T14:43:29.000Z (over 4 years ago)
 - Default Branch: master
 - Last Pushed: 2021-05-17T08:37:16.000Z (over 4 years ago)
 - Last Synced: 2025-06-07T08:59:23.863Z (5 months ago)
 - Language: Go
 - Size: 15.6 KB
 - Stars: 0
 - Watchers: 1
 - Forks: 0
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
README
          # Echo server
A very simple server serving requests at `localhost:8080`.
Use this for testing.
## Usage
Clone this:
```bash
git clone https://github.com/SunSince90/echo-server.git
```
Build:
```bash
make build
```
Run:
```bash
./bin/server
```
Contact it:
```bash
curl localhost:8080/hey
```
Alternatively, if you want a long string to be printed, you may call
```bash
# Set paragraphs to whatever number you desire. Default is 1
call localhost:8080/lorem-ipsum?paragraphs=3
```
## Docker/Kubernetes
Build and push the docker container:
```bash
make docker-build docker-push IMG=
```
Deploy it on Kubernetes:
```bash
kubectl create deployment echo-server --image 
```
Expose it:
```bash
kubectl create service loadbalancer echo-server --tcp=80:8080,8080:80
```
Contact it:
```bash
# Get the load balancer address
kubectl get service echo-server
curl http:///hey
```