NAME
asphelper - Generate an ASP4 skeleton web application
USAGE
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.
DESCRIPTION
The asphelper
program offers a way to get up-and-running quickly with a new ASP4 web application.
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.