Giter VIP home page Giter VIP logo

mylovetop / angular-spring-rsocket-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hantsy/angular-spring-rsocket-sample

0.0 1.0 0.0 241 KB

Demo for using Angular and Spring RSocket together

Home Page: https://medium.com/@hantsy/building-a-chat-application-with-angular-and-spring-rsocket-3cd8013f2f55

License: GNU General Public License v3.0

Kotlin 26.21% JavaScript 9.77% TypeScript 56.49% CSS 1.08% HTML 6.45%

angular-spring-rsocket-sample's Introduction

angular-spring-rsocket-sample

This sample is to demonstrate a chat application using the following cutting-edge technology stack :

  • Angular as client which uses rsocket-js to communicate with the server side
  • Spring WebFlux based RSocket server which uses WebSocket as transport protocol
  • Spring Data MongoDB based @Tailable query result as an infinite stream

Prerequisites

  • NodeJS 14
  • OpenJDK 14
  • Docker for Windows/MacOS

Build

Before running the application, you should build and run client and server side respectively.

Server

Run a MongoDB service firstly, simply you can run it from a Docker container. There is a docker-compose.yaml file is ready for you.

docker-compose up mongodb

Build the application.

./gradlew build

Run the target jar from the build folder to start up the application.

java -jar build/xxx.jar

Client

Install dependencies.

npm install

Start up the application.

npm run start

Open a browser and navigate to http://localhost:4200.

Reference

angular-spring-rsocket-sample's People

Contributors

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