Skip to content

Test task to show approach how to generate several types of documents in nodejs environment using TypeScript and PDFKit library

Notifications You must be signed in to change notification settings

fomazov/document-generator

Repository files navigation

TypeScript version Node.js version

Document Generator

Test task to show approach how to generate several types of documents in nodejs environment using TypeScript and PDFKit library

You can find cover letter to this project by this link

Clone repository

To clone the repository use the following commands:

git clone git@bitbucket.org:fomazov/document-generator.git

cd document-generator
npm install

Scripts to run

  • build - transpile TypeScript to ES,
  • build:watch - interactive watch mode to automatically transpile source files,
  • lint - lint source files

How to run

`npm run build` - transpile TypeScript to EcmaScript

`node build/app.js confirmation` - generate confirmation pdf document
`node build/app.js invoice` - stub for futher creation other types of pdf documents

Where I can find output documents?

All generated documents stored in ./public/documents/ directory

About

Test task to show approach how to generate several types of documents in nodejs environment using TypeScript and PDFKit library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published