This document explains about how to start Envizi Integration Hub using Source code.
You need to start 2 apps (API app and UI app).
-
Download this repo.
-
Prepare Configuration file by using the link 02-prepare-configuration-filed
-
Keep the property file
envizi-config.json
in some folder. Lets us assume the file is located in/Users/xyz/envizi-integration-hub-app/api/config/envizi-config.json
-
Run the below command to create virutal environment (first time only).
python -m venv myvenv
source myvenv/bin/activate
python -m pip install -r requirements.txt
- Run the below command to start the app.
export WRITE_INTERIM_FILES=FALSE
export LOGLEVEL=INFO
export ENVIZI_CONFIG_FILE="/Users/xyz/envizi-integration-hub-app/api/config/envizi-config.json"
export DATA_FOLDER="/Users/xyz/envizi-integration-hub-app/api/data"
export DATA_STORE_FOLDER="/Users/xyz/envizi-integration-hub-app/api/data-store"
export OUTPUT_FOLDER="/Users/xyz/envizi-integration-hub-app/output"
python main.py
- Open the url in your browser http://localhost:3001/hello to check if it is working.
Note: You can refer the following documentation here
- Update the Python App URL in the file
envizi-integration-hub-app/web/src/components/common-constants.js
export const API_URL = 'http://localhost:3001';
- Run the below command build (first time only).
yarn build
- Run the below command to start the app.
yarn run dev
- Open the url in your browser http://localhost:3000/