About

More About My Requirements

Paulie API is a standalone API and documentation site. It provides access to a set of Serverless Functions hosted on Gatsby Cloud that I use in number of my websites.

Rational

All of the sites listed below use this API and the functionality has been abstracted for one of two reasons:

  1. The origin site is not built using Gatsby and can't run it's own Serverless Functions
  2. The Serverless Function is used by more than one origin

I've shorthanded this functionality to mean the following:

SOF: Same Origin Function

This means that the site can run it's own Serverless Functions and both the Front and Back-end are deployed to the same origin.

This is denoted using solid lines in the diagram above

COF: Cross Origin Function

This means the site can't run it's own Serverless Functions or it makes use of a Serverless Function that is used by more than one origin.

This is denoted using dashed lines in the diagram above
API overview diagram

Origins

paulie.dev

paulie.dev is built using Gatsby

It uses COF's to connect to the /api/v2/twitter/tweets and /api/v2/github/repo endpoints. It uses is own SOF's to POST and GET user reactions stored in a Fauna database. It also uses a GET request for the Google Analytics API to display site visitors Country locations.

GatsbySOFCOF

MDX Embed

MDX Embed is built using Storybook

It uses COF's to connect to the api/v2/stripe/payment endpoint.

GatsbySOFCOF

pauliescanlon.github.io

pauliescanlon.github.io is built using Astro

It uses COF's to connect to the /api/v2/github/repo endpoint.

GatsbySOFCOF

Built with Gatsby ^4.21.1