Configuring Nikita Noark 5 Core for remote web access

Ole Aamot oka at oka.no
Sat Jun 10 23:01:37 CEST 2017


I am successfully running Nikita Noark 5 Core on a Debian server
(nikita) and the node.js web service accessed in the Chrome web
browser on a remote client machine (portable).

On the Debian server, checkout Nikita Noark 5 Core from github.com:

# git clone https://github.com/HiOA-ABI/nikita-noark5-core.git
# cd nikita-noark5-core/

In core-webapp/src/main/resources/application-demo.yml I modified the
"address" settings variable from localhost to 0.0.0.0 on my server
machine (nikita):

diff --git a/core-webapp/src/main/resources/application-demo.yml
b/core-webapp/src/main/resources/application-demo.yml
index df3d28c..819d1be 100644
--- a/core-webapp/src/main/resources/application-demo.yml
+++ b/core-webapp/src/main/resources/application-demo.yml
@@ -62,7 +62,7 @@ jwt:
 server:
     contextPath: /noark5v4
     port: 8092
-    address: localhost
+    address: 0.0.0.0
 management:
     context-path: /management
 info:

After you have made the change in
core-webapp/src/main/resources/application-demo.yml, build the Nikita
Noark 5 Core server:

# make

In another terminal window, edit the following line in
nikita-noark5-core/web/package.json

diff --git a/web/package.json b/web/package.json
index 67ec2e0..3bf976f 100644
--- a/web/package.json
+++ b/web/package.json
@@ -14,7 +14,7 @@
   "devDependencies": {},
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
-    "start": "node server.js"
+    "start": "nodejs server.js"
   },
   "author": "Alexander Alemayhu",
   "license": "TBD"

In another terminal window, start the node.js web server:

# cd nikita-noark5-core/web/
# make setup-debian
# make run

To run the noark5-parser import tool, open a new terminal window and
run the following:

# git clone https://github.com/oleaamot/noark5-parser.git
# cd noark5-parser
# ./runparser

Edit /etc/hosts on your Chrome web client and enter the IP-address of
your Debian server ("nikita"):

# sudo vi /etc/hosts

192.168.1.102   nikita

In my case 192.168.1.102 is the local network address of my Debian
server ("nikita").

Open the following URL to the Nikita Noark 5 Core server on your
Chrome web browser:

http://nikita:3000/login.html

You should be able to login with the username 'admin' and the password
'password' and navigate and view two example journals imported with
the noark5-parser in the web GUI.

2011/230 Byggsaker
2012/200 Vei og trafikk

Happy hacking,
Ole Aamot


More information about the nikita-noark mailing list