Skip to content

theglobechurch/globe-static

Repository files navigation

Globe Website

Netlify Status

In the box

  • Eleventy
  • Tailwind

Data sources

  • Wordpress CMS for page content
  • iCal feed for calendar events and pages

See _src/_data for specific imports

Dev setup

# Make sure we're all running the same Node version
nvm use

# Install packages
npm install

# Get your own env file (see below for details)
cp .env.example .env

# Let's get going (warning the first run will take a bit of time to pull in and cache all the data and images)
npm run dev

Environment

  • API_BASE - Base URL for Wordpress API
  • EVENTS_ICAL_FEED - iCal feed for where we'll be pulling all the events from
  • ENABLE_11TY_CACHE - When enabled (TRUE) 11ty will pull in data just once and then store it, this will make the site build a bit quicker. Don't enable in production.

If WordPress is behind some form of basic auth then you'll also need to add in the auth details to the env too. These are optional.

  • CMS_AUTH_USR
  • CMS_AUTH_PWD

Tests

There is a small number of tests (which should grow)

# Run all the tests
npm test

# Run a specific test:
npm test -- -t 'one off events'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published