- 13512014 Muhammad Yafi
- 13512066 Calvin Sadewa
Simple chat application using Apache Thrift.
- Install MongoDB. Ensure
mongod
is running on port 27017 - Install Java JDK 1.8
- Install Gradle, add it to your PATH environment variables.
- Ensure gradle can works by typing
gradle
in your command prompt.
The IDL is located at src/main/thrift/chat.thrift
- Run
gradle clientJar serverJar
on root project dir - Ensure MongoDB is running
- In
build/libs
folder, runjava -jar chat-server-1.0.jar
andjava -jar chat-client-1.0.jar
Ensure MongoDB is running. Run the src/test/java/com/if4031/ChatHandlerTest.java. The file creates a server on localhost, create a client that connect to the server, and call the method using RPC.