You need to do three steps to develop PrePAN; setup local database, setup config file and install dependency.
$ git clone git:https://github.com/CPAN-API/prepan.git
$ cd prepan
PrePAN is utilizing carton to manage module dependencies. Install dependencies via carton:
$ cpanm carton
There is a setup script for database setting. Please run below code at PrePAN root directory. It also setup database for test.
$ ./script/setup.sh
There is the example config file, which is local/development.eg.pl. Copy and replace it.
$ cp local/development.eg.pl local/development.pl
And replace local/development.pl for your environment, for example twitter consumer key and so on.
You can use plackup command to start local server. Please run below at PrePAN root directory.
$ carton exec -- plackup
Enjoy Hacking!!
Run below command if you want to run tests.
$ carton exec -- prove -v t/**/*.t
Edit cpanfile and run following commands if you want to update dependency.
$ carton install
$ git add cpanfile cpanfile.snapshot
$ git commit
You can ask @prepanorg or @shiba_yu36 if you have a question.