This is a topic based Publish/Subscribe Messaging system. In this model, any message published by the publisher to a topic, is immediately received by all the subscribers of the topic.
Following instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Maven - 3.x.x
- NodeJS - 8.x or 10.x
- MongoDB
- Angular CLI
The application has 3 parts:
- Clone the application
git clone https://github.com/PrachiP23/pubsub-angular-springboot-mongodb.git
- Build and run the backend app using maven
cd SpringMongoDb
mvn package
java -jar target\spring-boot-rest-mongodb-0.0.1-SNAPSHOT.jar
The backend server will start at http://localhost:8080.
- Run the frontend Angular app using npm
cd AngularApp
npm install
npm start
Frontend server will run on http://localhost:4200.
- Subscribe to topics
- Publish Message
Notify message to the subscribers of the topic.