for start this project
- start nats-streaming in docker: docker run --name nats --rm -p port:port -p port:port nats --http_port
- start postgresql in docker: docker run --name postgresql -p port:port -e POSTGRES_USER= -e POSTGRES_PASSWORD= -e POSTGRES_DB= -d postgres:13.3
- Create table with code from data.sql
- located in the root directory of the project start in terminal: go run cmd/main.go
- P.S. for testing in real time you can start nats-script. It send some test data to nats-streaming server. Script in nats_script.txt