Categorygithub.com/ArminGodiz/golang-code-challenge
modulepackage
0.0.0-20220318233028-5fdd5fb45475
Repository: https://github.com/armingodiz/golang-code-challenge.git
Documentation: pkg.go.dev

# README

challenger

Simple program to gain more experience in go concurrency and also publish/consume pattern

Dependencies

You must have go and Docker installed on your machine also you need to go get this Dependencies:

namerepo
gorilla/muxhttps://github.com/gorilla/mux
go redishttps://github.com/go-redis/redis

Usage

  1. Use docker run --name redis-usdb -p "yourPort":6379 -d redis to connect redis to port "yourPort".

    ("yourPort" is set to 8282 by default, but if you want to change it, change redisPort in config.json)

    Broker will be use port 8080 by default, to change it go to file config.json.

  2. build and run main.go file(go run main.go) to start the app.

  3. Go to publisher package and run go run publish.go (to start the publisher for broker).

Testing each part

You can go to each package and run go test to test that specefic part,

also there is an integration test in cmd package which check connection between different parts.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author