Demo Application
A simple demonstration application is provided with Jarvis. This application uses an SQLite database. When installing the Debian packages, this demonstration is automatically configured and enabled and available under the address:
http://localhost/jarvis-demo/
The following instructions are required only when not using the Debian package of Jarvis.
Complete Basic Jarvis Configuration
First, ensure that Jarvis itself is available via the /jarvis-agent/
URL. Access the following URL:
http://localhost/jarvis-agent/
Verify that you receive the response:
Missing app name. Send /jarvis-agent/<app>[/<dataset>[/<arg1>...]] in URI!
The Demo Database file
Take a copy of the database to a directory writable by the Apache user. For example:
mkdir -p /var/lib/jarvis/demo/
cp /opt/jarvis/demo/db/demo-empty .db /var/lib/jarvis/demo/demo.db
chown www-data:www-data /var/lib/jarvis/demo/demo.db
If this is not done correctly, you will see the error Attempt to write to a read-only database
when saving changes via the demo screen.
Configure Demo Web-Service
Install the demo.xml
Jarvis application configuration file:
cp /opt/jarvis/demo/etc/demo.xml /opt/jarvis/etc/demo.xml
In Apache configuration uncomment the alias to the Jarvis demo htdocs:
Alias /jarvis-demo/ "/opt/jarvis/demo/htdocs/"
and the /jarvis/
support files:
Alias /jarvis/ "/opt/jarvis/htdocs/"
Change the default values configured in demo.xml to match your installation:
- Location of the demo database file. Default is
/var/lib/jarvis/demo/demo.db
. - Location of the datasets configuration. Default is
/usr/share/jarvis/demo/dataset
. - Location of the session files. Default is
/var/lib/jarvis/demo/sessions
. - Location of the plugin file. Default is
/usr/share/jarvis/demo
.