Giter VIP home page Giter VIP logo

thrift-chat's Introduction

thrift-chat

Members

  • 13512014 Muhammad Yafi
  • 13512066 Calvin Sadewa

Simple chat application using Apache Thrift.

Prerequisites

  1. Install MongoDB. Ensure mongod is running on port 27017
  2. Install Java JDK 1.8
  3. Install Gradle, add it to your PATH environment variables.
  4. Ensure gradle can works by typing gradle in your command prompt.

Interface Definition Language

The IDL is located at src/main/thrift/chat.thrift

Run the jar files

  1. Run gradle clientJar serverJar on root project dir
  2. Ensure MongoDB is running
  3. In build/libs folder, run java -jar chat-server-1.0.jar and java -jar chat-client-1.0.jar

Test scripts

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.

thrift-chat's People

Contributors

yafithekid avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.