-
Notifications
You must be signed in to change notification settings - Fork 0
Installation steps for all the services.
Welcome to the devengers wiki!
After git pull from "develop_new" branch you will find three folders with the same name as of the services mentioned above.
- Mac OS - https://docs.docker.com/docker-for-mac/install
- Windows - https://docs.docker.com/docker-for-windows/install/
- Ubuntu - https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
-
pull rabbimq image: docker pull rabbitmq:3-management
-
run the image in a container (rabbitmq-server): docker run -d -p 15672:15672 -p 5672:5672 --name rabbitmq-server rabbitmq:3-management
- docker run -d -p 5432:5432 --name postgres postgres
- docker exec -it postgres bash
- psql -U postgres
- CREATE DATABASE dataretrieval_db
- CREATE DATABASE dataresult_db
- CREATE DATABASE datamodelling_db
- exit from Postgres (\q) and then from bash (exit).
-
Install python virtual environment in your system. follow this link. https://raturi.in/blog/installing-python-virtual-environment-ubuntu-mac-and-windows/
-
Start the python virtual environment in one terminal and type the following commands to install dependencies.
- pip install pika
- pip install Flask
- pip install psycopg2-binary
- pip install nexradaws
-
Now start open two more terminals and start the virtual environment run services in each terminal.
python3 dataretrieval.py run python3 datamodelling.py run python3 dataanalysis.py run
-
To test the services independently you may create a producer.py file with the below code and run it in the python virtual environment.
import pika
import json
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue='retrieval-processing', durable=True)
data = {
"userid": "abc",
"correlationid": "11111",
"year": "2013",
"month": "05",
"day": "31",
"starttime":"17",
"startmin":"0",
"endtime": "18",
"endtime":"0"
}
message = json.dumps(data)
channel.basic_publish(exchange='',
routing_key='retrieval-processing',
body=message)
print(" [x] Sent 'Hello World!'")
connection.close()
check if node is installed : node -v
npm install npm@latest -g
npm -v
npm install -all (Only once) Installing Dependencies from package.json
npm run dev To start the node backend server
Mongo DB TO setup connection please Update URL in .env file.
- Download the code (db-service) and import it as a maven project.
- Change the application.properties field
- spring.datasource.username= WITH YOUR OWN PASSWORD spring.datasource.password =WITH YOUR OWN PASSWORD
- Start your mysql server on machine.
- Create Database named as test.
- Run DbServiceApplication.java as a java application.
In the project directory, run:
(Only once) Installing Dependencies from package.json
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.