https://github.com/erkanzileli/hello-app
Test purpose http server.
https://github.com/erkanzileli/hello-app
fasthttp golang hello-app
Last synced: 12 months ago
JSON representation
Test purpose http server.
- Host: GitHub
- URL: https://github.com/erkanzileli/hello-app
- Owner: erkanzileli
- License: mit
- Created: 2021-02-14T18:22:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-05T21:57:15.000Z (about 4 years ago)
- Last Synced: 2024-06-20T03:28:47.475Z (almost 2 years ago)
- Topics: fasthttp, golang, hello-app
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-app
## Motivation
Just a test application. I am using this when I need an echo-server or an endpoint which always returns 200. Also it logs the incomings requests like the format below.
```
2021/02/14 20:41:04 GET /abc
2021/02/14 20:41:04 GET /xyz?param1=value1¶m2=value2
2021/02/14 20:41:04 POST /qwe
```
## Usage
Available on [DockerHub](https://hub.docker.com/r/erkanzileli/hello-app)
Run command below for to start the hello-app
```sh
$ docker run -p 8082:8081 --rm erkanzileli/hello-app
```
Test it
```sh
$ curl localhost:8082/xyz
Hello!
```
Looking the container logs
```
2021/02/14 18:18:49 Running on :8081
2021/02/14 18:18:55 GET /xyz
```
## Contribution
If you think something can be better the please do it without any thought. Of course all contributions are welcome.