Gateway Services

Gateway services in bringin backend project use http server to serve logic.

Gateway services forwarding http endpoint to another services that used grpc protocol.

Tech Stack

  • Golang version 1.20

Installation

  • Make sure you have golang version 1.20

  • Make sure you have postgres that support uuid, jsonb

  • Make sure you have user and cores, auth, social network & content services

  • See Recommmended project structure section.

Run Services

First to run this services, make sure your database and the tables that needed already created. Then create .env file from example.env template. The example.env file look likes below change the configuration and match with your environment.

After .env file created. Run this command

    go mod download // run this if dependency not downloaded
    go mod tidy // run this if dependency changed
    go run cmd/main.go -command=main

Last updated