## Operato ECS

- Operato : Solution family brand of hatiolab.com(http://www.hatiolab.com)
- ECS : Equipment Control System (Automation Solution)

## prerequisites

- nodejs version 12

## install from docker

- operato-ecs installation script

  - create a folder for the application and change directory to your folder.
  - the script will download a& install operato-ecs

    ```
    # install script for operato-ecs
    curl -fsSL https://raw.githubusercontent.com/things-factory/things-factory/master/packages/operato-ecs/installer/install.sh | bash -s
    ```

  - run 'start.sh' to start operato-ecs and 'stop.sh' to stop the running applicaton.
  - on initial start, run 'migrate.sh' first to migrate database.

  ```
  # data migration
  $ ./start.sh
  $ ./migrate.sh
  $ ./stop.sh

  # restart with service port no.
  $ ./start.sh 80
  ```
