eidolon.pl - Eidolon application code generator.
eidolon.pl [options] <application_name>
Options:
-v --verbose verbose output -h --help print this help
Examples:
eidolon.pl -v Example eidolon.pl AnotherExample
The eidolon.pl code generator will help you to create the application skeleton, so you won't need to make applications from scratch. It creates a simple example application with one default controller and a basic configuration with Eidolon::Driver::Router::Basic as a router driver, so you need this package to be installed.
The application name must consist of one or more alphanumeric characters.
Using the example application name Example the application directory will contain the following items:
A directory with executable contents. All your application scripts are placed here. Contents of this directory should be moved into cgi-bin directory on your web server.
cgi-bin
CGI gateway of the application. All user requests will come through this file.
FastCGI gateway of the application. You need to install the FCGI module to use this type of gateway.
A directory containing all application modules. If your application will use other modules, place them here too.
A main module of the application. Contains almost nothing - some subclassing stuff and application version definition.
A directory with application configuration and other stuff used to interact with Eidolon.
Application configuration. Generated configuration contains only basic settings, so you should edit this file first and specify application settings manually.
A directory containing application controllers.
A default controller of the application.
A directory containing static data - images, stylesheets and javascript. Contents of this directory should be moved into htdocs (httpdocs, www or wwwroot) directory of your web server.
htdocs
httpdocs
www
wwwroot
Web-server configuration files.
Apache configuration file for CGI application. Contains mod_rewrite rules for the application. Rename this file to .htaccess while deploying the application to web server.
.htaccess
Apache configuration file for FastCGI application. Rename this file to .htaccess while deploying the application to web server.
A directory containing images for the example application.
Nice flag image :)
Eidolon logo.
The application generated using this script will work only on Apache web server with mod_rewrite module installed. Support of other servers will be added in future versions of this script.
To deploy your application perform the following actions:
1. Copy one of the files in bin directory into the cgi-bin directory of your web server. For CGI application, you should copy a index.cgi, for FastCGI application - copy a index.fcgi file.
bin
index.cgi
index.fcgi
2. Set rwxr-xr-x (755) permissions on file that you copied at first step (i.e. index.cgi or index.fcgi).
rwxr-xr-x
3. Copy the lib directory into the cgi-bin directory of your web server. Actually, you can place this directory at your wish - in this case you will need to fix a path to this directory in a file that you copied at first step (index.cgi or index.fcgi, line 11) and to specify a new path in your application configuration.
lib
4. Copy one of the config directory files into the htdocs (httpdocs, www or wwwroot) directory of your web server. Choose a file to copy according to file you copied at first step - if you want a CGI application - you will need to copy apache_cgi and if you want a FastCGI application - use apache_fcgi instead. After copying, rename this file to .htaccess.
config
apache_cgi
apache_fcgi
5. Copy the entire img directory into the htdocs (httpdocs, www or wwwroot) directory of you web server.
img
Eidolon, Eidolon::Application
http://www.atma7.com/en/products/eidolon/ - official project web page.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Anton Belousov, <abel@cpan.org>
Copyright (c) 2009, Atma 7, http://www.atma7.com
To install Eidolon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eidolon
CPAN shell
perl -MCPAN -e shell install Eidolon
For more information on module installation, please visit the detailed CPAN module installation guide.