Giter VIP home page Giter VIP logo

messenger's Introduction

Simple chat messenger

This project is created for training Java knowledge. It will consist of two modules - backend an UI.

Requirements

JDK11 or later

Tech Stack

Client: Java, Swing, HttpClient, DTO

Server: Java, Spring Boot, Spring Data JPA, Flyway Migration, Postgresql

Features

  • Chat rooms
  • Contact list
  • Message history

Installation

Create an Application User and group

  sudo groupadd -r messenger_group
  sudo useradd -r -s /bin/false -g messenger_group messenger_user

Create Systemd Service First, create a systemd service file to manage our application

sudo vim /etc/systemd/system/backend.service

It will have content like below:

[Unit]
Description=Simple messenger backend service

[Service]
WorkingDirectory=/opt/messenger
ExecStart=/bin/java -Xms128m -Xmx256m -jar -Dspring.profiles.active=dev backend-0.1.1-SNAPSHOT.jar
User=messenger_user
Type=simple
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Set User to the one created earlier, and WorkingDirectory to the directory with a jar file.

Give the user and group ownership permissions for the Project Directory:

sudo chown -R messenger_user:messenger_group /opt/messenger

reload systemd so that it knows of the new application added.

sudo systemctl daemon-reload

Run Locally

Start Java Application service with systemd

  sudo systemctl start backend.service

To check the status, use:

  systemctl status backend

You can also enable the service to start on server boot:

  sudo systemctl enable backend

To restart the application, use:

  sudo systemctl restart backend

๐Ÿš€ About Me

I'm a Java developer... https://github.com/vosmerkin

Roadmap

  • Create UI
  • Create backend basic application
  • Add user login / logoff functionality
  • Add chat rooms
  • Test deploy
  • Add messages functionality
  • Add message history

messenger's People

Contributors

vosmerkin avatar vladislav-kisliy avatar

Watchers

 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.