mosha-quote-service

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mosha-quote-service

Quote microservice used in Mosha

Database

The main database used in the service is MongoDB. It's used to store the authors. To deploy it locally, run:

docker run --name mongo -p 27017:27017 -d mongodb/mongodb-community-server:latest 

Docker

To build the container image, run:

docker build -t mosha-quote-service .

After that to run the container, run:

docker run --name mosha-quote-service -e MONGO_DB_HOST="mongodb://localhost:27017" --net=bridge -p 8180:8180 -d mosha-quote-service

gRPC

The communication between services is done using gRPC. To regenerate the gRPC code, run:

protoc --go_out=. --go_opt=paths=source_relative \
  --go-grpc_out=. --go-grpc_opt=paths=source_relative \
  proto/quote.proto

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL