DESCRIPTION

DuckPAN is an application built to aid DuckDuckHack contributors with Instant Answer development. It is mainly used by contributors to test Instant Answer triggers and preview their visual design and output.

INSTALLATION

COMMANDS

Help

Shows you the DuckPAN help page which briefly describes DuckPAN and its features.

FOR INSTANT ANSWER DEVELOPERS

duckpan check

Checks if you fulfill all requirements for the development environment. This will run automatically during a duckpan release.

duckpan query [package_name ...]

Test Goodie and Spice triggers interactively on the command line. For each query, the Instant Answers triggered will be displayed. This tool should be used to ensure your Instant Answer triggers correctly.

Starts a local web server, which emulates the DuckDuckGo production environment. Allows for live testing of Goodie and Spice Instant Answers. This tool should be used to ensure your Instant Answer displays correctly. For Spice Instant Answers, this is especially important to verify API calls are successful and no JavaScript errors exist.

-p, --port <number>: Forces DuckPAN server to run on the specified port (default port is 5000)

Generates all necessary files for a new Spice or Goodie Instant Answer (depending on the current repo). DuckPAN will prompt you for a package name and generate the required files. If the name is already in use, DuckPAN will let you know and no files will be created.

duckpan test

Tests your release, by running the tests in the t/ directory using Dzil (if a dist.ini exists) or prove. This will run automatically during a duckpan release.

duckpan installdeps

Attempt to install dependencies for the distribution in your current directory using cpanm.