Coder Social home page Coder Social logo

chatting's Introduction

๐Ÿซง Chatting

CourseInfo License

Chatting is a simple online-chat application, based on JavaFX and Socket. In this assignment, you will need to implement a WeChat like program, but much simpler.

Quickstart

Click the use template to create a fork of this template - to avoid potential plagiarism dispute, please be sure that your repository is made private before the deadline.

We also provide you a template with lombok that makes your code shorter and more elegant. To use that, make sure you've checked the Include all branches option when creating your fork. Then merge the lombok branch into main.

You must submit all your code to the main branch.

You need to then clone your fork into local machine. You can then open the whole folder as a project in your IDE - it will recognize the Maven structure and automatically configure the project.

Install the Project

We will define the commonly used constants and models in the chatting-common model, which is the dependency of chatting-client and chatting-server.

This design is a common practice in many large projects. But it is not mandatory for you to follow this architecture. You can move the model codes to other places if you want.

The first thing you need to do is to install the parent pom into the local maven repository.

mvn install

Note that each time after you modified the codes in chatting-common, you need to reinstall the subproject -- you can think about why.

mvn install -pl chatting-common

Run the Server

As our client will try to connect to the server socket when starting-up, you need to run the server before starting one or more clients.

Please find the Main class under the chatting-server model, implement your ServerSocket, and run the main method.

Run the Client

If you are using JDK 1.8 with JavaFX bundled, you may find the Main class under the chatting-client model, and run the main method to start a client. Note that you can start multiple clients by clicking the run button several times.

If you are using JDK in any higher version, please use the javafx plugin to run the client.

mvn javafx:run -pl chatting-client

Alternatively, you can find the goal in the plugin list, and click on it:

Tasks

  • Server & Client (70 pt)
  • JavaFX GUI (15 pt)
  • Exception handling (15 pt)
  • Bonus (12 pt)

For more details, please refer to the assignment description.

Hint

As this project is Maven managed, it's easy to introduce dependencies and build plugins. This template already added some dependencies that may help you finish this assignment, you can search their documents and try figuring out how these dependencies could be helpful, but it's not necessary to use them. You may also introduce some other dependencies, but ask the teacher or SA before doing so.

More Information

If there's anything ambiguous about the document or the instruction above, feel free to open an issue and ask. Your question may also help others to better understand this assignment ๐Ÿ”ฅ

License

This project is licensed under the MIT License - see the LICENSE file for details.

chatting's People

Contributors

hezean 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.