@last-rev/contentful-reports
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

⚠️ Reports are run against an in-memory sqlite3 database that is populated from the synced entries/assets and content types from Contentful

Requirements

You must first have a file location of an existing contentful export, using the contentful-cli Run the following steps to generate the export:

contentful login
contentful space export --space-id {spaceId} --environment-id {envId} --export-dir {exportDir} --inlcude-drafts

Adding a report

The file sql/db.schema has all the data we can build reports from. Each report lives on a separate SQL query under sql/{reportName}.sql. In we want to capture more data from Contentful to build new reports, we can add new tables or add columns to the already existing ones and then create a new report file with the query for it.

Readme

Keywords

none

Package Sidebar

Install

npm i @last-rev/contentful-reports

Weekly Downloads

280

Version

0.2.0

License

MIT

Unpacked Size

60.3 kB

Total Files

37

Last publish

Collaborators

  • maxtechera.lastrev
  • tharris
  • justinlastrev
  • jaimelastrev
  • bradtaylorsf