Skip to content
Jonathan edited this page May 22, 2022 · 1 revision

Setup and Installation

Our project is primarily hosted on Google Cloud as a collection of microservices. Our project is designed as a microservice monorepo stored on GitLab. Using Docker and containerization, we abstract most of the dependencies within containers. Within the operating environment, a few requirements must be met. Below is a guide on installing the requirements, downloading the project, and deploying the application. External Requirements: Docker: https://docs.docker.com/get-docker/ Python: https://www.python.org/downloads/ npm/Node.js: https://nodejs.org/en/download/ Go: https://go.dev/doc/install Cloning the Repository - In a terminal window, enter this command:

git clone https://git.ece.iastate.edu/sd/sdmay22-35.git

Running the application locally

All the following commands are run from the root of the sdmay22-35 folder; the following commands are how to run each service locally. Each service is web-based and can be hit via a web browser or through Postman. The URLs will be exposed in the terminal after each application has been started.

API

cd api
​​go build -o bin/go-rest-api main.go
go run main.go

Assistant

cd assistant/src
pip3 install -r requirements.txt
python3 app.py

Influx

cd data/influx/src
pip3 install -r requirements.txt
python3 app.py

Neo4j

cd data/neo4j/src
​​pip3 install -r requirements.txt
python3 app.py

Frontend

cd frontend
npm run dev

Anomaly

cd data/neo4j/src
​​pip3 install -r requirements.txt
python3 app.py

Prediction

cd data/neo4j/src
​​pip3 install -r requirements.txt
python3 app.py

Clone this wiki locally