Skip to content

Latest commit

 

History

History
99 lines (59 loc) · 1.83 KB

README.md

File metadata and controls

99 lines (59 loc) · 1.83 KB

Gateway API Service

This is an example of an GRPC client that sends remote procedure calls to the server.

Built With

Prerequisites

Usage (Docker)

Clone the GRPC Client repository

git clone https://github.com/cybera3s/gateway_api.git

in the same directory Clone the GRPC server repository

git clone https://github.com/cybera3s/user_management_service.git

move the docker-compose from user_management_service to current directory

mv user_management_service/docker-compose.yml .

Initial .env variables for Client

Add and Open .env file to add Required Configurations:

nano gateway_api/gateway_api/.env

Add these required Configurations to .env file for GRPC Client:

SECRET_KEY=<your secret key>

ALLOWED_HOSTS=<host1,host2,...> or '*'

GRPC_SERVER_PORT=<grpc server port default 50051>

Save Your changes with CTRL+X

Initial .env for Server

Add and Open .env file to add Required Configurations:

nano user_management_service/user_manager/.env

Add these required Configurations to .env file for GRPC server:

SECRET_KEY=<your secret key>

POSTGRES_DBNAME=<database name>
POSTGRES_USER=<database username>
POSTGRES_PASSWORD=<database password>
POSTGRES_PORT=<database port>

Save Your changes with CTRL+X


Run and Build docker-compose file
docker-compose --env-file ./user_management_service/user_manager/.env up --build 

if everything goes well visit site at: http://127.0.0.1:1234/swagger

License

Distributed under the GPL License

Contact

Sajad Safa - cybera.3s@gmail.com

(back to top)