pdf generator script
git clone https://github.com/webcore-it/pdf-generator-script.git
cd pdf-generator-script
npm installThe script takes an invoice id as first args parameter. Possible test invoice ids are 42 and 666 (dummy data can be found in /services/data.service.js).
To generate a pdf run:
# Generates a pdf invoice in the files folder:
node app.js 42To get error messages run:
# Invalid invoice data:
node app.js 666# No invoice found:
node app.js 1337# Invalid invoice id:
node app.js oneTwoThreeTest are writen as jasmine spec files. So jasmine must be installed to be able to run the tests (npm install -g jasmine).
# Run the tests:
jasmine