asphelper - Generate an ASP4 skeleton web application
asphelper --app=AppName --domain=example.com --email=you@your-email.com [--host=dbhost --db=dbname --user=dbusername]
If you specify --dbname and --dbuser it will ask you for a database password - completely optional.
--dbname
--dbuser
The asphelper program offers a way to get up-and-running quickly with a new ASP4 web application.
asphelper
After successfully answering its questions, asphelper will generate a skeleton web application including config files, full directory structure and a simple unit test.
Use the resulting application as a starting-point for your own development.
If executed with the following arguments:
asphelper --app=Foo --domain=www.foo.local --email=foo@bar.com --host=localhost --db=foo --user=root
You will get an application matching what is listed below:
. `-- foo |-- common | |-- lib | | `-- Foo | | `-- db | | `-- model.pm | `-- sbin | `-- ddl.sql `-- www |-- conf | |-- asp4-config.json | `-- httpd.conf |-- etc |-- handlers | `-- foo | `-- www | `-- echo.pm |-- htdocs | `-- index.asp `-- t `-- 010-basic `-- 010-compile.t
NOTE: If Class::DBI::Lite is installed, a base Model class will be created based on Class::DBI::Lite. See Class::DBI::Lite for details on how to use it.
To install ASP4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ASP4
CPAN shell
perl -MCPAN -e shell install ASP4
For more information on module installation, please visit the detailed CPAN module installation guide.