Coder Social home page Coder Social logo

wechat's Introduction

wechat

Simple real time chat application with Spring boot and Angular 4

Prerequisites

  • Java 8
  • Maven
  • NodeJS
  • Angular CLI

Functional summary

  • The backend is a Spring boot application which exposes Rest API for login / logout feature. It does not use Spring security for authentication. The login feature is only registering the user in the database (In memory database). The backend enables STOMP messaging over Websocket to allow two-way communication between the backend and frontend.

  • The frontend is an Angular 4 application which has a simple login page where the user can connect to the chat room. The chat room displays the list of connected users and once the user clicks on a user in the list, they can start to send / receive messages between each other in real time.

Setup

Backend

- Go to backend folder:
	$ cd wechat-backend
- Run the following maven command:
	$ mvn spring-boot:run
The port 8080 is used so please make sure that it is not used by another process

Frontend

 - Ensure that nodeJS and angular-cli are both installed
 - Go to frontend folder:
	$ cd wechat-frontend
 - Run the following command to install the dependencies and the current package context:
	$ npm install
 - Run a dev server with the following command:
	$ ng serve
The port 4200 is used so please make sure that it is not used by another process
Go to the browser and navigate to http://localhost:4200

wechat's People

Contributors

marcratombotsoa avatar

Stargazers

Marcin Friedrich avatar Douglas da Silva Monteles avatar  avatar Ravindu Danthika Gunarathna avatar Ali Werghemmi avatar  avatar Luc Hariman Randrianomenjanahary avatar

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.