Skip to content

4HalaVandala/L0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L0

wildberries test task level 0

ports

Nats-streaming:

  • localhost:4222
  • localhost:8222

Postgresql:

  • localhost:5433

Http server

  • localhost:8000

Quickstart

docker-compose up -d &&
migrate -path ./schema -database 'postgres://postgres:1122@localhost:5433/postgres?sslmode=disable' up &&
go run cmd/main.go &&
go run publisher/main.go

Script to publish json data (publisher/main.go) looking for "model.json" file in root directory then pubishing it to nats-channel. Http server (cmd/main.go) listening messages on :4222 port and saving it in database. At the start server initializing cache and saving all rows from db in-memory.

About

Testtask level 0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published