The Proserver Das Server: R. M. Pettett 2006-04-21
The Proserver Das Server: R. M. Pettett 2006-04-21
The Proserver Das Server: R. M. Pettett 2006-04-21
R. M. Pettett 2006-04-21 ProServer is a simple, extensible DAS server framework built around POE. The architecture consists of: A server script which runs as a daemon A configuration module holding settings for sources A number of source adaptors, generally one for each back-end data source A number of back-end data transport helpers for handling database connections etc. These fit together in the following way:
Grey modules denote virtual classes. SourceAdaptor subclasses implement methods for the DAS calls they provide, e.g. build_features, build_types, build_entry_points. ProServer is not yet fully featured up to the DAS 1 specifications, so if there appears to be missing functionality, there probably is. However, ProServer in its current form is used successfully in production in many Sanger Institute projects.
Requirements
Perl (tested on 5.6.1 and above) DBI for database connectivity Getopt::Long POSIX Sys::Hostname CGI POE Bundle::LWP Config::IniFiles Compress::Zlib
Before commencing with the installation of ProServer, please ensure you have a working Perl installation with the components listed above. ProServer has been successfully installed on Tru64, Linux, Mac OSX and Windows.
Downloading ProServer
A recent tarball of ProServer can be downloaded from its homepage: http://www.sanger.ac.uk/proserver/
Installing on Cygwin
You may need to install the following Cygwin packages:
Devel/cvs Deve/gcc Devel/make Interpreters/perl Web/wget
Once this is complete, change to the 'eg' directory and run ./proserver with your preferred arguments.
Example: I need to present a hypothetical MySQL database with some data in. 1. Download the ProServer sourcecode and ensure your system meets the installation requirements. 2. cd lib/Bio/Das/ProServer/SourceAdaptor/ 3. Copy either simpledb.pm or cosmic.pm to myadaptor.pm 4. Edit myadaptor.pm modify the package name to end ::myadaptor and change the SQL to represent the database structure 5. cd ../../../../../ 6. cp eg/proserver.ini to eg/myconfig.ini 7. Edit eg/myconfig.ini 8. Copy the [image] section and change to [myadaptor]. 9. Set adaptor = myadaptor 10.Add your database credentials to host, port, username, dbname, password 11. /usr/local/bin/perl Makefile.PL 12. make 13. eg/proserver -c eg/myconfig.ini 14.The service should bind all available network interfaces, or that specified in the interface field under [general].