tirzasrwn / subscription

Learn concurrency real world example in go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subscription

About

Implementing concurrency in real world example with go.

Account Info

Web App

user: admin@example.com
password: verysecret

Postgres

USER: postgres
PASSWORD: password
DB: concurrency

Instalation

Docker

# Start docker compose for postgres, redis, and mailhog.
docker compose up -d
# Stop docker compose.
docker compose down

Running Web App

# Start the web app.
make start
# Stop the web app.
make stop

Run Test

go test -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
# Open coverage.html file with your browser to preview.
open coverage.html

Ports

  • Go Web App: 8080
  • Mailhog: 8025
  • Redis: 6379
  • Postgres: 5432

About

Learn concurrency real world example in go.

License:GNU General Public License v2.0


Languages

Language:Go 97.9%Language:Makefile 2.1%