This is a sample project to show how PDF files can be generated with PhantomJS and Puppeteer.
Provide means for rendering templates into HTML. Use PhantomJS or Puppeteer to render HTML files into PDF documents.
- Node.js (prefer versions v8.9.3+)
Base setup was copied from https://github.com/Microsoft/TypeScript-Node-Starter
npm run dev
Each library should have types defined. If you are planning to use one without
then you need to create a definitions file in
Prefer using dts-gen for that.
Jest is used for tests. Add new test files in
npm run build
NODE_ENV=production npm start
Swagger spec is located in
- Typescript models are generated by the spec
- API models are validated by the spec