Programmer documentation
Perl pod HTML
Documentation
1. Installation
1.1. Requirements:
- Apache with CGI or mod_perl support
- Perl (5.6 or higher)
- Database server
- Check out if you have installed DBI::DBD module (download from: http://dbi.perl.org)
- Check out if you have installed XML::Twig module (download from: http://www.xmltwig.com)
1.2 Main installation
1.3 Example installation
- Enter into directory examle
- Create databases in MySQL with name library
- Start SQL script (example/sql/library_dump.sql) - in mysql
console type: \. library_dump.sql
- Grant all privileges on that database to user librarian - grant all privileges on library.* to
librarian@localhost;
- Try to execute eny script - ie.: ./book.cgi
- If you can see web content with no errors it's cool :) Medvedb is
running
- Configure your web server to accept web directory with those
scripts:
Alias /library /directory/with/example/
<Directory
/directory/with/example/>
Options All
AddHandler cgi-script .cgi .pl
AllowOverride All
</Directory>
- If you use mod_perl add .pl extension as Perl script
2. XML tree
* - means that tags should repeat
- medvedb
- configuration
- author
- encoding
- css
- language
- title
- database
- user
- host
- engine
- dbname
- action
- fold (atrib name="script.name")*
- application (atrib name="name_of_application")*
- configuration
- views*
- view (atrib name="name_of_view")*
- string
- table
- column (atrib name="name_of_column_in_DB")*
- string
- type
- value
- additional tags
- format
- tablewidth
- orientation
- submit
- action
- database
- debug