Giter Club home page Giter Club logo

chat's Introduction

Simple Chat-App using ReactJS, STOMP, Java SprintBoot with H2-Database containerized in Docker.

Pre-Requisites

  • Docker

Run the application

  1. docker-compose -f docker-compose.prod.yml build to build the containers
  2. docker-compose -f docker-compose.prod.yml up -d to run the containers
  3. (http://localhost:3000) to access the application

Commands

docker-compose [-f docker-compose.prod.yml] build to build the containers [in production mode]
docker-compose [-f docker-compose.prod.yml] up [-d] to start up the [production] containers [in detached mode]
docker-compose down to tier down the containers
Further commands can be found on the official Docker documentation website

Configurations

"docker-compose.yml" containing Docker config for development mode "docker-compose.prod.yml" containing Docker config for production mode

Open Points / Next Steps

  • Analyze Web-Security of the application in detail and take necessary actions
  • Show connection errors in UI
  • Simplify & optimize Docker configuration, eg. adding a .dockerignore file

Choices of Technology

Backend

Dependency Reason Identified Risks
Java Backend Technology as preferred in challenge description
SpringBoot Efficiently create Controller, Services and Repository Lots of hidden magic
SpringSecurity Handle general security incl. CORS
H2-Database Most simple in memory database
Mockito Simplifying mocking of test classes Inappropriate usage can facilitate violation of SOLID
JUnit5 To test the application

Frontend

Dependency Reason Identified Risks
React Efficiently develop Frontend application Lacking support for very old browser versions
Material-UI Efficient creation of a good-looking, responsive design Big UI-framework (decreasing app performance)
Cross-Fetch To communicate with Backend using REST
STOMP.js To communicate with Backend using STOMP
SockJS To communicate with Backend using STOMP
Moment Transforming dates - Do not reinvent the wheel Rather large library, given that there is only one use case so far
Jest To test the application

chat's People

Watchers

 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.