Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Import data from Dato CMS GraphQL Content Delivery API

Notifications You must be signed in to change notification settings

jeromecoupe/eleventy_datocms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Eleventy and GraphQL

A small example of retrieving data from a GraphQL API endpoint and using it to build static pages with Eleventy.

Using Dato CMS in this case.

Install and run

Create a DatoCMS account.

  • copy .env.example and rename as .env
  • add your Dato CMS API Key to your new .env file
  • run npm install
  • run npm run build to delete the cache folder, load data from API and build the site
  • run npm runn dev to spin a dev server and load data from cache (unless you delete the cache file / folder)

About

Import data from Dato CMS GraphQL Content Delivery API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published