Skip to content

giallon/api_pdf

Repository files navigation

API PDF

Basic API to print pdf from html with Puppeteer.

Distribute pdf printing between multiple pages in an headless browser.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See Deployment for notes on how to deploy the project on a live system.

Prerequisites

Docker or Node

Installing

Easy way:

docker-compose up

Or:

npm install
npm start

Running the tests

npm test

Deployment

Parameters (environment variables):

  • PORT: port of the server (default: 3000)
  • NB_PAGES: select the number of concurent pages (default: 3)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Run the test suite and check the output
  4. Add tests for your feature or fix (please)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Giallon - Initial work - Github
  • Vaidd4 - Initial work - Github

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published