Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Follow these steps:

Prerequisites

  1. Clone the code.
  2. Install python 3.x (for Linux and OSX, it would be there by default)
  3. Install npm:
    • sudo apt-get install npm (for Ubuntu/debian)
    • sudo yum install npm (for Red hat based systems fedora, CentOS etc)
    • brew install npm (for OSX)
    • Alternatively, you can download from here.
  4. For UNIX based systems, elevate the permissions of setup.sh for execute: sudo chmod a+x setup.sh
  5. Run the setup script ./setup.sh

Executing the code

script.py needs to be executed to serve or build the code in development mode. Usage details are given below. The name of the service should be same as the folder in root directory of the repository.

usage: script.py [-h] --services {EABC,ECM,TAM,prompt}
                 [{EABC,ECM,TAM,prompt} ...] [--hideumm] (--build | --serve)

starts the frontend server

optional arguments:
  -h, --help            show this help message and exit
  --hideumm             Hide UMM from the side menu
  --build               create a build of the front end
  --serve               serve the front end

required arguments:
  --services {EABC,ECM,TAM,prompt} [{EABC,ECM,TAM,prompt} ...]
                        List of all the microservices to include in
                        build/serve

Example command: (serve)

	`python script.py --services ECM EABC TAM --serve`

Creating Docker Image

  1. Build the code using:
    • python script.py --services ECM EABC TAM --build
  2. Create docker image using:
  • docker build -t <image name>:tag.

If the above steps are not working follow:


OS, Software/Tools & Packages Version
Windows

11

Node Version11.15.0
NPM version6.7.0
Bower version1.8.14
Python3.12.0

...