The Email service "sends" an email to the customer with their order details by rendering it as a log message. It expects a JSON payload like:
{
"email": "[email protected]",
"order": "<serialized order protobuf>"
}
We use bundler
to manage dependencies. To get started, simply bundle install
.
You may run this service locally with bundle exec ruby email_server.rb
.
From src/emailservice
, run docker build .