litviz

Created: 2014-05-19 18:53
Updated: 2014-09-06 00:48

README.md

LitViz

This is a project for EngL 8510 to demonstrate the application of visualizations and databases to literature.

Baseline Software

  • git
  • apache2 (with mod rewrite and php5)
  • mysql (server and client)
  • basex (and supporting java libraries)
  • php5 (with curl, mysql, xml, and json)

Obtain the Code


kerzn002@sealion:~$ cd /var/www
kerzn002@sealion:/var/www$ git clone https://github.umn.edu/kerzn002/litviz.git
kerzn002@sealion:/var/www/litviz$ cd litviz
kerzn002@sealion:/var/www/litviz$ curl -sS https://getcomposer.org/installer | php
kerzn002@sealion:/var/www/litviz$ php composer.phar install

Create the XML Database


kerzn002@sealion:/var/www/litviz$ cd data
kerzn002@sealion:/var/www/litviz/data$ basexserver -S
BaseX 7.6 [Server]
Server was started.

kerzn002@sealion:/var/www/litviz/data$ basexclient -w Username: admin Password: BaseX 7.6 [Client] Try help to get more information.
> create db wordsworth wordsworth.xml Database 'wordsworth' created in 1590.2 ms.
> create user litviz Password: (enter password - I used ‘passwd’) User 'litviz' created.
> grant read on wordsworth to litviz grant read on wordsworth to litviz READ granted to 'litviz' on 'wordsworth'.
> exit Have fun.

Create the Relational Database


kerzn002@sealion:/var/www/litviz/conf$ mysql -u root -p

mysql> create user 'litviz'@'127.0.0.1' identified by ‘passwd’'; Query OK, 0 rows affected (0.00 sec)
mysql> create database litviz; Query OK, 1 row affected (0.00 sec)
mysql> grant all on litviz.* to 'litviz'@'localhost'; Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges; Query OK, 0 rows affected (0.01 sec)
mysql> quit
kerzn002@sealion:/var/www/litviz/data$ mysql -u litviz -p litviz < litviz.sql

Set the Configuration Variables

kerzn002@sealion:/var/www/litviz/conf$ ln -s config-env-dev.yml settings.yml
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more