sugar84/test_task
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
To run app test_task you need:
- install Dancer;
- install Dancer related modules:
- HTTP::Server::Simple::PSGI
- HTTP::Body
- HTTP::Types
- URI
- install app related modules:
- YAML
- Template (and Template Toolkit too)
- Dancer::Plugin::Database (if not installed)
- DBI (if not installed)
- take sources of the app
- cd app/dir and run:
- tool/db_helper.pl
(it creates db schema, it's needed to be ran from root dir of app)
- tool/insert_into_db.pl
(it inserts content into table 'pages')
Default configuration - 'development', if you have to change it to production,
enter into config.yml and replace value "development" of parameter "environment"
with parameter "production".
When you have installed all related modules simply run
from the root dir of the application:
./test_task.pl
And app will be ran and will listen *:3000 port.
If want you "auto_reload" option to be enabled, install modules Module::Refresh
and Clone.
If you want ask ome questions: email me to sugar.61rus@gmail.com