Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 5.12 KB

README.md

File metadata and controls

64 lines (48 loc) · 5.12 KB

Netlify Functions template

This template is a personal reuse starting point for Netlify functions. This is general, but assumes the function will be used as part of a JAMstack project or environment.

Toolchain Summary

  1. First, there needs to be repository. Our environment needs this to exist first, and this template project can be cloned to start.
  2. Next, we need our development environment. GitPod launches from the repo in GitHub.
  3. GitPod starts up with the required developer tools and dependencies based on the files in this project's repo. RPM, the package manager, is called by GitPod to install everything before we start.
  4. Last, when we save edits and check into GitHub, the edits are auto deployed to Netlify for hosting.

GitHub

GitHub is a cloud repository based on Git and coding platform.

GitHub repo

GitHub Pages

  • GitHub Pages - Pages is a web hosting option based on Jeykll. It can be as simple as a README.md. This is an alternative to hosting with Netlify.

GitHub Actions

Actions provide workflow automation within GitHub. Actions does not currently expose and HTTP address, so not a good option to trigger from a Webhook.

GitPod

NPM - Node Package Manager

Netlify

Setup

  • Snippets help doc - Snippet Injection is for adding a section of code to all served files. This is for analytics, tracking, etc.

Functions

Tools

REST APIs, Webhooks, and Workflow Automation

Tools

  • Webhook.site - Helper site for Webhook callbacks
  • API Tester - Helper site for testing HTTP calls
  • Zapier - A GUI-driven service for building simple workflows. Can create automations without code, but without any middleware code options.

APIs