Skip to content
dhruti-patel edited this page Feb 8, 2022 · 28 revisions

Welcome to the ampersand wiki!

Our Team:

  1. Aditi Pednekar
  2. Dhruti Patel
  3. Nikhil Kamble

Napkin Diagram: Architecture Diagram:

This branch consists of 5 microservices.

account-service

Contains google-authentication for user written in Javascript

greetings-service

Fetches username from google-authentication service written in Javascript

data-ingestor

Fetches URL from AWS written in Python

data-plotting

Plots the image from file written in Python

radar-station

Gets the equivalent radar station code for the queried city written in Java

database

Keeps record of all user history. This service is also the API Gateway of our application. It redirects all the requests from the frontend to all other microservices and connects with DB to store and retrieve user history. It's written in Javascript

Pre-requisites

Steps for deploying each service

  1. Deploy account-service

    cd account-service
    npm i
    npm start

  2. Deploy greetings-service.

    cd greetings-service
    npm i
    npm start

  3. Deploy data-ingestor

    cd data-ingestor
    docker build -t data-ingestor-image .
    docker run -d --name adscontainer1 -p 81:81 data-ingestor-image
    **OR (to run without docker execute below 3 steps) **
    cd data-ingestor
    pip install -r requirements.txt
    python -m uvicorn app.data_ingestor:app --reload --port 81

  4. Deploy data-plotting

    cd data-plotting
    docker build -t data-plotting-image .
    docker run -d --name adscontainer -p 82:82 data-plotting-image
    OR (to run without docker execute below 3 steps)
    cd data-plotting
    pip install -r requirements.txt
    python -m uvicorn app.main:app --reload --port 82

  5. Deploy radar-station

    Download Eclipse
    Open exisiting project (open the radar-station project that you just cloned)
    Right click on Application.java file and select Run as Java application (it is in src->java->main->nexraddata->Application.java)
    Now the microservice should be up and running on port 8080

  6. Deploy database

    • Open terminal:

    Type "mongod"

    • If above command gives error follow the steps given below for Windows

    create directory "data" in C drive
    go inside "data" directory
    create directory "db"
    Run "mongod" command again

    • Open another terminal

    cd database
    npm i
    npm run devStart

  7. Deploy GUI

    cd gui
    npm i
    npm start

Clone this wiki locally