Skip to content

Setup Guide

Faisal Thaheem edited this page Jan 26, 2021 · 6 revisions

Instructions on this page pertain to starting the services in non docker environment for debugging/development or enhancement purposes. The recommended way to run the app is using docker.

Prerequisites

  1. NodeJS
  2. AngularJS
  3. Python 3.5

Web App

Two apps, namely the web app and the web service need to be running. After cloning this repository to your local drive, change your directory to "app" folder containing angular 5 site and issue the following commands which will download the required dependencies and build the angular app in a sub folder called "dist"

$ npm install
$ ng build

To serve files through the "dist" folder you can use any web server, if you are on *nix a box then apache or nginx or if you're on windows then mongoose or any other of your choice. Web app is ready for action!

Web service

Install the following packages

pip3 install pillow scikit-image cryptography flask flask-compress flask-cors psutil paho-mqtt pyyaml netifaces

and issue the command python3 imanno.py to run the service. Before running, you have to configure the location of database in imanno.yaml configuration file. The sqlite database file can be found inside the "repository root/db" folder.

Set "rawimgs" and "refimgs" to point to the folder containing files that have to be annotated, set "createIfAbsent" to True to let the script insert new entries for files that are absent in the database.

Clone this wiki locally