mwickett / forbes-web

Website for Forbes and Associates. Built with ❤️ using Spike. Hosted on Netlify.

Home Page:http://beta.drforbes.ca

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forbes and Associates Web

Website for Forbes and Associates Psychology Practice.

Warning

This is a pretty old project, so it might not work.

Style Conventions

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)

Setup

  • 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 or spike compile

Testing

Tests are located in test/** and are powered by ava

  • npm install to ensure devDeps are installed
  • npm test to run test suite

Serverless

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

About

Website for Forbes and Associates. Built with ❤️ using Spike. Hosted on Netlify.

http://beta.drforbes.ca


Languages

Language:CSS 50.9%Language:JavaScript 49.1%