Install Dist::Zilla using your preferred CPAN client:
$ cpanm Dist::Zilla
Install the project dependencies:
$ dzil listdeps | cpanm
Start server on port 5000
$ twiggy lib/MetaCPAN/Web.pm
The backend defaults to api.metacpan.org
. Running a local API server is optional and not required to hack on the front-end.
Change METACPAN_API if you are running your own local API:
$ METACPAN_API=localhost:5000 twiggy lib/MetaCPAN/Web.pm -p 5001 -R lib -E development
This will use the API server at localhost:5000
and sets the port of the front-end to 5001. The process will watch changes in the current directory and start with the Twiggy server.