viktorminko / microservice-task

0 stars 0 forks source link

Run with docker

I left .env files in git to simplify set up process, normally only .env samples should be in repository

Run containers:

put file data.csv in route folder run

docker-compose up -d

Run compiled binaries

Run server with your DB credentials

PORT=5000 DBHOST=mysql DB_USER=user DB_PASSWORD=password DB_SCHEMA=schema go run cmd/server/main.go

then run parser

GRPC_HOST=0.0.0.0 GRPC_PORT=5000 DATA_FILE=./data.csv go run cmd/parser/main.go

Run with Makefile

Test, lint and build

make all

Run server and parser

make run_all

Directory structure