Coder Social home page Coder Social logo

l0's Introduction

L0

Первый запуск

Создание бд

$ docker-compose up -d
$ docker-compose exec pgdb sh
$ psql -U admin
admin=# create database orders; 

Поднятие миграций с помощью goose

$ make migrate-up

Работа приложения

service - основной сервис
publisher - сервис для генерации и публикации в канал валидных/невалидных сообщений

Логи запуска приложения

Параллельно запустим publisher

$ make pub
$ go run cmd/app/main.go
{"level":"info","ts":1654768720.9499724,"caller":"logger/zap.go:25","msg":"Config has been loaded"}
{"level":"info","ts":1654768721.0336752,"caller":"logger/zap.go:25","msg":"PostgresComposite has been created successfully"}
{"level":"info","ts":1654768721.082607,"caller":"logger/zap.go:25","msg":"Data has been recovered from db to in-memory cache"}
{"level":"info","ts":1654768721.0831296,"caller":"logger/zap.go:25","msg":"OrderComposite has been created successfully"}
{"level":"info","ts":1654768721.1146371,"caller":"logger/zap.go:25","msg":"Nats connection successfully established"}
{"level":"info","ts":1654768721.121121,"caller":"logger/zap.go:25","msg":"Server has been started"}
{"level":"info","ts":1654768960.8691394,"caller":"logger/zap.go:25","msg":"The order was successfully written to the DB and in-memory cache"}
{"level":"info","ts":1654768963.871098,"caller":"logger/zap.go:25","msg":"The order was successfully written to the DB and in-memory cache"}
{"level":"error","ts":1654768966.8756394,"caller":"logger/zap.go:29","msg":"Received error json format"}
{"level":"info","ts":1654768966.8914194,"caller":"logger/zap.go:25","msg":"The order was successfully written to the DB and in-memory cache"}
{"level":"info","ts":1654768969.9020646,"caller":"logger/zap.go:25","msg":"The order was successfully written to the DB and in-memory cache"}

l0's People

Contributors

swooosh13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.