Line | |
---|
1 | # Korero MÄori ASR Interface
|
---|
2 |
|
---|
3 | A Greenstone 3 interface for the Atea Project, providing a refreshed and greenstone-integrated interface for the [MÄori Macron Restoration service](https://trac.greenstone.org/browser/other-projects/the-macronizer/trunk).
|
---|
4 |
|
---|
5 | // TODO: This project uses an updated Macroniser backend. It hasn't been committed to the repository however.
|
---|
6 | If I don't update these instructions after it has been, it'll either have taken over the trunk of the old macroniser
|
---|
7 | or be under https://trac.greenstone.org/browser/gs3-extensions/atea-nlp-tools/trunk/src
|
---|
8 |
|
---|
9 | ## Project setup
|
---|
10 |
|
---|
11 | Ensure that [node.js](https://nodejs.org) is on your path. (e.g., which node)
|
---|
12 |
|
---|
13 | You will also need to setup the Greenstone3 `macron-restoration` extension. Visit https://trac.greenstone.org/browser/other-projects/the-macronizer/trunk to get the source, and check the [wiki page](http://wiki.greenstone.org/doku.php?id=internal:macroniser) for setup instructions.
|
---|
14 |
|
---|
15 | ```
|
---|
16 | npm install
|
---|
17 | ```
|
---|
18 |
|
---|
19 | ### Compile and hot-reload for development
|
---|
20 |
|
---|
21 | This will open a development webserver on http://localhost:8080 that is detached from the running Greenstone instance.
|
---|
22 |
|
---|
23 | ```
|
---|
24 | npm run serve
|
---|
25 | ```
|
---|
26 |
|
---|
27 | ### Compile and minify for production
|
---|
28 |
|
---|
29 | 1. In `vue.config.js`, update the `publicPath` property if necessary.
|
---|
30 |
|
---|
31 | 1. Build the project.
|
---|
32 |
|
---|
33 | ```
|
---|
34 | npm run build
|
---|
35 | ```
|
---|
36 |
|
---|
37 | 3. Visit the `macron-restoration` Greenstone3 XSL page. For a default Greenstone3 installation, this should be located at http://localhost:8383/greenstone3/library/page/macron-restoration
|
---|
38 |
|
---|
39 | ### Lint and fix files
|
---|
40 |
|
---|
41 | This uses the settings in `.eslintrc.js` to lint the project, and attempts to fix mistakes accordingly.
|
---|
42 |
|
---|
43 | ```
|
---|
44 | npm run lint
|
---|
45 | ```
|
---|
Note:
See
TracBrowser
for help on using the repository browser.