Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 593 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 593 Bytes

projectWithNats

for start this project

  1. start nats-streaming in docker: docker run --name nats --rm -p port:port -p port:port nats --http_port
  2. start postgresql in docker: docker run --name postgresql -p port:port -e POSTGRES_USER= -e POSTGRES_PASSWORD= -e POSTGRES_DB= -d postgres:13.3
  3. Create table with code from data.sql
  4. located in the root directory of the project start in terminal: go run cmd/main.go
  5. 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