This repository contains a gRPC service for managing doctors' 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.
- Clone the repository:
git clone https://github.com/TekClinic/Doctors-MicroService.git
- 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>
-
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 -
Run the server:
go run server.go