https://github.com/contentjet/contentjet-to-pdf-example
An example of generating a PDF with content fetched from an install of Contentjet, the open source headless CMS
https://github.com/contentjet/contentjet-to-pdf-example
Last synced: about 1 year ago
JSON representation
An example of generating a PDF with content fetched from an install of Contentjet, the open source headless CMS
- Host: GitHub
- URL: https://github.com/contentjet/contentjet-to-pdf-example
- Owner: contentjet
- Created: 2018-07-28T10:36:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-29T00:26:03.000Z (almost 8 years ago)
- Last Synced: 2025-02-01T20:29:49.638Z (over 1 year ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# contentjet-to-pdf-example
An example of generating a PDF using Puppeteer with content fetched from an install of [Contentjet](https://contentjet.github.io), the open source headless CMS.
This script expects configuration via environment variables. You MUST set the following environment variables either exported directly or by adding a .env file in the root of this project. e.g.
```
API_URL=https://api.yourcontentjetinstall.com/
CLIENT_ID=bb31db8ac1c34d64bcedd201cc43de33f
CLIENT_SECRET=7d997e3a1a8044f2a3f41d96a857da34
PROJECT_ID=6
ENTRY_ID=22
```