# Activepager - so-115-adapter

# Prerequisites
- NodeJs [version > 14] ([download](https://nodejs.org/en/download/))
- Oracle Instant Client ([download](https://www.oracle.com/database/technologies/instant-client/downloads.html))

# Getting started

## 1. Install all prerequisites
- Go to [prerequisites](#Prerequisites) section

## 2. Open a PowerShell with Administrator privileges
![](./powershell_admin.png)

## 3. Install

```
npm install -g @activepager/so-115-adapter-installer
```

If an npm configuration error appears, run the installation script again

## 4. Configure
Windows:
```
so-115-adapter.cmd configure
```

Unix:
```
so-115-adapter configure
```

## 5. Start the process and save it for restart:
Windows:
```
so-115-adapter.cmd start
```

Unix:
```
so-115-adapter start
```

# Other useful commands

## Get process status information:
Windows:
```
so-115-adapter.cmd status
```

Unix:
```
so-115-adapter status
```

## Read the process logs in realtime
By default you can see 10 lines of logs before the command runned
Windows:
```
so-115-adapter.cmd logs
```
You can also set a custom amount of lines to see. In the example below you will see 50 lines of logs before the command runned
```
so-115-adapter.cmd logs 50
```

Unix:
```
so-115-adapter logs
```
You can also set a custom amount of lines to see. In the example below you will see 50 lines of logs before the command runned
```
so-115-adapter logs 50
```

## Restart the process:
Windows:
```
so-115-adapter.cmd restart
```

Unix:
```
so-115-adapter restart
```

## Stop the process:
Windows:
```
so-115-adapter.cmd stop
```

Unix:
```
so-115-adapter stop
```

## Delete the process:
Windows:
```
so-115-adapter.cmd delete
```

Unix:
```
so-115-adapter delete
```

## Uninstall

```
npm uninstall -g @activepager/so-115-adapter
```