This repository contains a gRPC service for managing Tekclinic appointments. The service is implemented in Go and uses PostgreSQL as the database.
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/Appointments-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-Liblibrary 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