Skip to content

rabmine/prepan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to setup local development environment

You need to do three steps to develop PrePAN; setup local database, setup config file and install dependency.

Clone this repository

$ git clone git:https://github.com/CPAN-API/prepan.git
$ cd prepan

carton

PrePAN is utilizing carton to manage module dependencies. Install dependencies via carton:

$ cpanm carton

Local database setting

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

Local config file setting

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.

How to start local server

You can use plackup command to start local server. Please run below at PrePAN root directory.

$ carton exec -- plackup

Enjoy Hacking!!

Local test setting

Run below command if you want to run tests.

$ carton exec -- prove -v t/**/*.t

Update dependency

Edit cpanfile and run following commands if you want to update dependency.

$ carton install
$ git add cpanfile cpanfile.snapshot
$ git commit

Contact

You can ask @prepanorg or @shiba_yu36 if you have a question.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 56.0%
  • CSS 35.5%
  • JavaScript 7.2%
  • Shell 1.2%
  • Ruby 0.1%