This code is taken and adapted from the Learn JAMstack in 3.5 Hours
course by Phil Hawksworth.
If you'd like to learn something interesting, please have a look at:
Learn JAMstack in 3.5 Hours
To work on this example locally, you can clone the repository and start editing, although there are a few pre-requisites:
- NodeJS and NPM
- A free Netlify account
# clone the repo
git clone https://github.com/spereverde/eleventy-with-api
# move into the working directory and install dependencies
cd eleventy-with-api
npm install
# build and start the local development server
npm start
# just run the build
npm run build