pdf generator script
git clone https://github.com/webcore-it/pdf-generator-script.git
cd pdf-generator-script
npm install
The 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 42
To get error messages run:
# Invalid invoice data:
node app.js 666
# No invoice found:
node app.js 1337
# Invalid invoice id:
node app.js oneTwoThree
Test 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