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.
For developing you should run the front-end as follows:
$ METACPAN_API=localhost:5000 twiggy lib/MetaCPAN/Web.pm -p 5001 -R . -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.