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

greetings-service

Fetches username from google-authentication service

data-ingestor

Fetches URL from AWS

data-plotting

Plots the image from file

database

Keeps record of all user history

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 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 run devStart

  6. Deploy GUI

    cd gui
    npm i
    npm start

Clone this wiki locally