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

55 lines
828 B
Markdown

# Log enricher service for cybertron project
## Frontend error monitoring service
### How to Run
#### Install Go
```cmd
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
```cmd
make run-local
```
### Final Build
```cmd
make run-all
```
### Install Air
```cmd
go install github.com/air-verse/air@latest
```
### Run air
```cmd
air
```
## How to build on local using docker
Remove double quotes from kafka-password if it contians special characters
```shell
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```