Using Apache Thrift with Go
Make sure you have thrift installed in your machine, if you don't, follow the steps here:https://thrift.apache.org/download
Run the command bellow to generate thrift code
make thrift-gen
Before testing, make sure there's nothing running on your port :8080
In a separated terminal, run:
make server
Open another terminal tab and run
make client
This command will send a request to the RPC server
![Screenshot 2023-05-28 at 10 23 30 AM](https://private-user-images.githubusercontent.com/32846823/241562748-3653fc80-cd46-4e80-85b3-cd0ed07779c7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5MzY4MzEsIm5iZiI6MTcyNTkzNjUzMSwicGF0aCI6Ii8zMjg0NjgyMy8yNDE1NjI3NDgtMzY1M2ZjODAtY2Q0Ni00ZTgwLTg1YjMtY2QwZWQwNzc3OWM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDAyNDg1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNhMTQzZjQ3YmIwZWFkNmJlODQ0MTdlYzc4OGY0ODI0MDQ2MjEyMTBlMmI2OTAwYzUxOTA0NzBhZmU4MzRmZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.N1syTRn6255nP9uiVnJfeNI9Go6j6A94M7O6T_UzIEA)