Files
cybertron-log-enricher/README.md
2024-11-09 17:33:58 +05:30

828 B

Log enricher service for cybertron project

Frontend error monitoring service

How to Run

Install Go

brew install go
brew install golang-lint

Setup postgres

You need to set-up postgres db and create a database with name cybertron_dev

Run local

make run-local

Final Build

make run-all

Install Air

go install github.com/air-verse/air@latest

Run air

air

How to build on local using docker

Remove double quotes from kafka-password if it contians special characters

docker build . -t log-enricher
docker run log-enricher --env-file local.env

Important pointer - When using golang-migrate for migrations, the naming convention for migration files should be - 202310201651_initial-migration.up.sql