1.Ashlesha Shinde.
2.Sairaj Gaonkar.
3.Bhakti Narvekar.
This document provides the instructions to run the application on your machine.
1. Switch to 'assn1' branch.
2. git clone https://github.com/airavata-courses/RandomError.git
cd RandomError
This micro-service is the API gateway to interact with other services.
Java
Any suitable IDE (preferably IntelliJ, Eclipse) to run Java Spring project with Maven Plugin.
RabbitMQ : Please follow the link https://www.rabbitmq.com/download.html
run the class 'DemoApplication.java' (src/main/java/com/example/demo/DemoApplication.java)
This will start the service on port 8080.
After starting all the below services visit: http://localhost:8080/homeLogin
This micro-service is for registration and login activities.
Java
Any suitable IDE (preferably IntelliJ, Eclipse) to run Java Spring project with Maven Plugin.
MongoDB Atlas is used as Database.
run the class 'Receiver.java' (com/randomerror/usermanagement/receive/main/Receiver.java)
This will start the service on port 8081.
This micro-service is for storing the sessions and retrieving them.
NodeJS
Any suitable IDE (preferably Visual Studio Code) to run NodeJS files.
MongoDB Atlas is used as Database.
Open Command Prompt/Terminal
Move to the directory sessionmanagement-service inside RandomError folder.
Install all the below mentioned packages
npm install --save mongoose
npm install --save express
npm install --save mongodb
npm install --save body-parser
npm install --save amqplib
Open Terminal in IDE or open Command Prompt/Terminal
Move to the directory sessionmanagement-service inside RandomError folder.
node savetodb.js
Open Terminal in IDE or open Command Prompt/Terminal
Move to the directory sessionmanagement-service inside RandomError folder.
node sendtoqueue.js
Python
1. Install Anaconda
2. Open Anaconda prompt and go to the path /RandomError
3. Use the link -> https://github.com/ARM-DOE/pyart/wiki/Simple-Install-of-Py-ART-using-Anaconda
Use commands mentioned in the above link to install pyart
4. pip install pika
5. pip install nexradaws
Open the terminal and run the following commands
1. pip install pika
2. pip install nexradaws
3. pip install arm-pyart
4. pip install netCDF4
1. Go the respective folder Open a new Anaconda prompt or the terminal and type "python data_modeling.py"
2. Open a new Anaconda prompt or the terminal and type "python data_retrieval.py"
The final result will be saved in plots folder which is in the root directory of the repository.