This is a standalone NodeJS application which acts as a gRPC server. Wait, what is gRPC?🔍
Logger-app can log event to a log file. The contract for communicating with gRPC server is defined by the event.proto
file. event.proto
is a Google Protocol Buffer which lays the foundation of communication medium for gRPC framework.
Currently there is one service defined in event.proto
file. Therefore, it is only possible to call logToFile()
from a remote client.
Ensure logger-eureka-server instance up and running on your local machine. Then,
- clone the repository to your machine [
git clone https://github.com/JudeNiroshan/logger-app.git
] - move to
logger-app
[cd logger-app
] - execute
npm i
- execute
npm run start
(start the gRPC server and waiting for incoming events)