We have developed an example Web application made with Angular 12 that uses RESTHeart WebSockets with MongoDB Change Streams to provide an instant, zero lines of code API for a realtime chat application:
In short, RESTHeart leverages MongoDB's Change Streams to instantly notify database modifications to clients (Web or Mobile apps), through the WebSocket protocol.
RESTHeart is an open-source runtime and a low-code SDK for Microservices with declarative security and instant Data APIs on MongoDB or any compatible database (e.g. Percona Server for MongoDB, AWS DocumentDB and Azure Cosmos DB).
The complete source code of this Angular Web application is available on GitHub. The most interesting thing, IMO, is that the server-side source code necessary to deploy this example is zero. You need to start MongoDB, configure RESTHeart and just start writing client-side code.
Below an article which describes this demo with more details:
Top comments (0)