Skip to content

TekClinic/Tasks-MicroService

Repository files navigation

Tasks-Microservice

This repository contains a gRPC service for managing task information within TekClinic. The service is implemented in Go and uses Protobuf for defining message types and service methods.

Please note that the provided code assumes the existence of a TekClinic/MicroService-Lib library for authentication and environment variable handling, and setting up the environment variables found in TekClinic/MicroService-Lib is a prerequisite.

Table of Contents

Installation

  1. Clone the repository:
git clone https://github.com/TekClinic/Tasks-MicroService.git
  1. Set up the required environment variables for database connection:
DB_ADDR=<database_address>
DB_USER=<database_user>
DB_PASSWORD=<database_password>
DB_DATABASE=<database_name>
  1. This microservice uses the TekClinic/MicroService-Lib library for base configuration, therefore, you have to set up environment variables for the library. For further information, please refer to the MicroService-Lib repository

  2. Run the server:

go run server.go

Protobuf

Protobuf generates Go code. You must setup the protobuf compiler with the Go and the gRPC plugins: https://grpc.io/docs/languages/go/quickstart/.

To generate the Go code, we have a Makefile command. After doing the above setup, you can just run:

make generate-proto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published