To use this repository:
- Install graphviz on your system. With homebrew:
brew install graphviz
- Create and populate your own .env file with the Contentful Space ID, a Contentful Management Token, and the name of a Contentful environment (usually
master
). npm install
the dependencies of this repo- From the command line, use:
node index.js | dot -Tpng > a_file_name_here.png
to create a .pngnode index.js | dot -Tpdf > a_file_name_here.pdf
to create a .pdf