Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kecven/go-word-of-wisdom
Test task for Server Engineer. Design and implement “Word of Wisdom” tcp server.
https://github.com/kecven/go-word-of-wisdom
Last synced: about 1 month ago
JSON representation
Test task for Server Engineer. Design and implement “Word of Wisdom” tcp server.
- Host: GitHub
- URL: https://github.com/kecven/go-word-of-wisdom
- Owner: kecven
- License: apache-2.0
- Created: 2024-02-01T11:44:05.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-02T09:28:16.000Z (12 months ago)
- Last Synced: 2024-06-21T01:53:29.927Z (7 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-Word-of-Wisdom
Test task for Faraway.Design and implement “Word of Wisdom” tcp server.
- TCP server should be protected from DDOS attacks with the Proof of Work (https://en.wikipedia.org/wiki/Proof_of_work), the challenge-response protocol should be used.
- The choice of the POW algorithm should be explained.
- After Proof Of Work verification, server should send one of the quotes from “word of wisdom” book or any other collection of the quotes.
- Docker file should be provided both for the server and for the client that solves the POW challenge## How to run
## Docker compose
1. Clone the repository
2. Run `docker-compose up` in the root directory
3. Run `docker-compose run gwow-client` in the root directory
4. Follow the instructions in the client container## without docker
1. Clone the repository
2. Run `go run ./server/src/main.go` in the root directory
3. Run `go run ./client/src/main.go` in the root directory
4. Follow the instructions in the client container