# Macroniser interface installation


1. Install required dependencies:

    ```sh
    > npm install
    ```
### Compile and hot-reload for development [Optional]

This will open a development webserver on http://localhost:8080 that is detached from the running Greenstone instance. It hot-reloads as you make changes to the files, allowing for much faster development.

```sh
> npm run serve
```

### Compile and minify for production - in macron-restoration:

1. In `vue.config.js`, update the `publicPath` property if necessary. note, I don't think this is currently used.

2. Build the project.

    ```sh
    > npm run build
    ```

3. Visit the `macron-restoration` Greenstone3 XSL page. For a default Greenstone3 installation, this should be located at http://localhost:8383/greenstone3/macroniser/page/macron-restoration

### Lint and fix files

This uses the settings in `.eslintrc.js` to lint the project, and attempts to fix mistakes accordingly.

```sh
> npm run lint
```
