fgmaia / task

task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task project demo

Purpose

Task project demo

Dependencies

  • Docker
  • Docker Compose

Getting Started

First create the db docker volume:

docker volume create --name=mysql_task_data

Now execute

make prepare-rabbitmq

then

make compose-up

This command will start all containers with docker-compose.

open 3 consoles and run

make docker-exec

Now we are ready to start the application.

For each console opened

Start grpc server in new terminal

make run-grpc-server

Start queue worker to read messages from rabbitMQ queue

make run-read-queue-worker

Run client to create task

go run cmd/grpclient/main.go TASK_SUMMARY

Make commands

Running tests locally

make test

Create mocks from interface

make mock

windows

path\go\bin\mockery.exe --all

Gen proto files

make gen-proto

Gen rpc files

make gen-rpc

for more options open Makefile archive

Example

alt text

Some tests

alt text

About

task


Languages

Language:Go 98.0%Language:Makefile 1.2%Language:Dockerfile 0.8%