Commit 6cb61f3c authored by vikram singh's avatar vikram singh

updated the README.md file

parent 3fa0f01c
###### Reactor API different operations # Reactor API different operations
Implemented SpringBoot maven project and performed different operations of reactor API and cleared the basic concepts.
Reason behind this project is to explore the Reactor API and different operations provided by it.
Added starter-web,starter-test and reactor-test dependency **Overview of the Project**
This is the implemention SpringBoot maven project and performed different operations of reactor API adding the basic concepts.
How to Run Application The main idea behind this project is to explore the Reactor API and different operations provided by it.
Clone the project using url: https://gitlab.mynisum.com/vksingh/reactor-api-operations.git **How to Run Application**
Make sure u have jdk 1.8 and maven Make sure you have jdk 1.8 and maven installed in your system
Run The different Test Cases to get different operations Available on Reactor-API. Clone the project using url: 'https://gitlab.mynisum.com/vksingh/reactor-api-operations.git'
Run The different Test Cases to get different operations Available on Reactor-API.
Run the whole project to understand the realtime implementation of the reactor API; Run the whole project to understand the realtime implementation of the reactor API
make sure MongoDB and maven and kafka is installed into your system:
Mongodb installation: **Note:** Make sure MongoDB and kafka is installed into your system:
Download the zip file: **Mongodb installation guide**
Run the following command;
>cd Downloads
> mv mongodb-osx-x86_64-3.0.7.tgz ~/
Extract MongoDB from the the downloaded archive, and change the name of the directory to something more palatable: Download the zip file:
> cd ~/ > tar -zxvf mongodb-osx-x86_64-3.0.7.tgz > mv mongodb-osx-x86_64-3.0.7 mongodb Run the following command;
>cd Downloads
> mv mongodb-osx-x86_64-3.0.7.tgz ~/
Create the directory where Mongo will store data, create the “db” directory. ou can create the directory in the default location by running Extract MongoDB from the the downloaded archive, and change the name of the directory to something more palatable:
> cd ~/ > tar -zxvf mongodb-osx-x86_64-3.0.7.tgz > mv mongodb-osx-x86_64-3.0.7 mongodb
Create the directory where Mongo will store data, create the “db” directory. ou can create the directory in the default location by running
mkdir -p /data/db mkdir -p /data/db
Make sure that the /data/db directory has the right permissions by running Make sure that the /data/db directory has the right permissions by running
> sudo chown -R `id -un` /data/db > sudo chown -R `id -un` /data/db
> # Enter your password > Enter your password
Run the Mongo daemon, in one terminal window run Run the Mongo daemon, in one terminal window run
~/mongodb/bin/mongod. ~/mongodb/bin/mongod.
This will start the Mongo server. This will start the Mongo server.
Run the Mongo shell, with the Mongo daemon running in one terminal, type ~/mongodb/bin/mongo in another terminal window. This will run the Mongo shell which is an application to access data in MongoDB. Run the Mongo shell, with the Mongo daemon running in one terminal, type ~/mongodb/bin/mongo in another terminal window. This will run the Mongo shell which is an application to access data in MongoDB.
create EmployeeDB database into the monogodb;
::::::::::::::::::::::::::::::::
Kafka installation::::
brew install kafka
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties **Kafka installation**
kafka-server-start /usr/local/etc/kafka/server.properties
$ brew install kafka
If we get any issue in running kafka server: zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
To fix this issue, we need to change the server.properties file. kafka-server-start /usr/local/etc/kafka/server.properties
$ vim /usr/local/etc/kafka/server.properties
Here uncomment the server settings and update the value from
listeners=PLAINTEXT://:9092
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
kafka-console-producer --broker-list localhost:9092 --topic test If we get any issue in running kafka server:
>send first message To fix this issue, we need to change the server.properties file.
>send second message $ vim /usr/local/etc/kafka/server.properties
>wow it is working Here uncomment the server settings and update the value from
listeners=PLAINTEXT://:9092
kafka-console-consumer --bootstrap-server localhost:9092 --topic test --from-beginning kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
kafka-console-producer --broker-list localhost:9092 --topic test
>send first message
>send second message
>wow it is working
kafka-console-consumer --bootstrap-server localhost:9092 --topic test --from-beginning
Once kafka and mongodb is installed in your system; **Official links**
create EmployeeDB database into the monogodb;
and create test topic into the kafka server;
http://www.vinsguru.com/reactive-programming-schedulers/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment