RPC::ExtDirect::Server - CGI-based Ext.Direct server
use RPC::ExtDirect::Server; my $server = RPC::ExtDirect::Server->new(static_dir => 'htdocs'); my $port = $server->port; print "Ext.Direct server is running on port $port\n"; $server->run();
This module implements a minimal Ext.Direct capable server in pure Perl. Its main purpose it to be used as lightweight drop-in replacement for more complex production environments like Plack or Apache/mod_perl, i.e. for testing and mockups. It can also be used as the basis for production application servers when feature richness is not a requirement, or when resource consumption is of primary concern.
Create a new server instance with specified parameters:
Hostname or IP address to bind to. Defaults to 127.0.0.1.
Port to bind to. Defaults to randomly generated in 30000-40000 range.
Path to directory with static content. This parameter is mandatory.
Run the server. This method never returns.
RPC::ExtDirect::Server depends on the following modules: CGI::ExtDirect, RPC::ExtDirect, JSON, Attribute::Handlers.
For more information, see CGI::ExtDirect.
There are no known bugs in this module. Use github tracker to report bugs (the best way) or just drop me an e-mail. Patches are welcome.
Alexander Tokarev <tokarev@cpan.org>
I would like to thank IntelliSurvey, Inc for sponsoring my work on this module.
Copyright (c) 2012 Alexander Tokarev.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install RPC::ExtDirect::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPC::ExtDirect::Server
CPAN shell
perl -MCPAN -e shell install RPC::ExtDirect::Server
For more information on module installation, please visit the detailed CPAN module installation guide.