-> generate files by using the below command
thrift --gen cpp calculator.thrift
-> Replace the skeleton file (generated by above step in the gen-cpp directory) by "calculator_server.cpp" added here (cpp directory)
-> build the cpp files
g++ -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -Wall -I/usr/local/include/thrift *.cpp -L/usr/local/lib -lthrift -o calc_server
-> Run the server
./calc_server
-> create build.sbt file and add scrooge and finagle dependencies
-> add the source thrift file location and destination folder for generated files in the build file
-> add the scrooge sbt plugin in the plugins.sbt file
-> for generating the code run the below command
sbt scrooge-gen