Website for Forbes and Associates Psychology Practice.
This is a pretty old project, so it might not work.
This project (mostly) follows the GPS approach. This means each page is scoped using an id on the <main>
element.
Additionally, the following class naming conventions are used:
.g-<name>
for global style classes used across the site.p-<name>
for page level style classes used on a single page.s-<name>
for section level style classes. These are mostly used on the home page (for example)
- make sure node.js is at version >=
6
npm i spike -g
- clone this repo down and
cd
into the folder - run
npm install
- run
spike watch
orspike compile
Tests are located in test/**
and are powered by ava
npm install
to ensure devDeps are installednpm test
to run test suite
Using AWS Lambda and the serverless project, we're able to unpublish expired events "automatically." The basic approach is this:
- AWS Lambda Cron job runs once per day and looks for events with a date that is the next day
- If it finds one, it calls the Contentful API to unpublish that post
- Then it calls Netlify to trigger a build of the site