Skip to content

luciaCP/sample-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample-go

Directory app: REST Api with PostgreDB connection and AMQP publisher Directory consumer: AMQP Consumer with PostgreDB connection

Run app with

go mod tidy

go run <path>/app/main.go

tests go test <path>/sample-go/app/tests

Run consumer with

go mod tidy

go run <path>/consumer/main.go

tests go test <path>/sample-go/consumer/tests

Migration

To create new migration file, install dependency golang-migrate and execute:

migrate create -ext sql -dir migrate/versions -seq <name for migration>

AMQP

Ref. https://dev.to/koddr/working-with-rabbitmq-in-golang-by-examples-2dcn#setting-up-a-message-consumer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages