To run this app you need perl itself and some additional perl-packages. Here is a list of required packages:
- Dancer2
- Dancer2::Plugin::Database
- DBD::SQLite (or any other DB package)
- Dancer2::Plugin::REST
- Dancer2::Plugin::Cache::CHI
- LWP::UserAgent
- Syntax::Keyword::Try
You need to create config.yml and fill it with some data. Example is below
appname: "Images Proxy"
charset: "UTF-8"
serializer: "JSON"
plugins:
Database:
driver: "SQLite"
database: 'app.sqlite'
"Cache::CHI":
driver: "Memory"
global: 1
logger: Console
api_key: "<PUT_YOUR_TOKEN_HERE>"
engines:
logger:
Console:
log_level: core
Just run perl ./app.pl and app is ready to reciewe requests on http://localhost:3000.