Skip to content

t1merickson/bigmessage-netlify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bigmessage — Netlify

A trivial web app — anyone can change the big message on the front page, and all changes are logged by date and IP.

Part of the bigmessage project. This version runs on Netlify Functions v2 with Netlify Blobs (KV) for storage.

Stack

  • Compute: Netlify Serverless Functions v2
  • Storage: Netlify Blobs (KV) — zero-config, log stored as a single JSON blob
  • Functions: netlify/functions/{index,change,log,html,validate}.mts

Setup

npm install

Deploy

Push to GitHub and connect to Netlify. Or use the CLI:

npx netlify deploy --prod

Dev

npx netlify dev

Routes

  • GET / — display the current big message
  • GET/POST /change — form to submit a new message
  • GET /log — history of all changes

Validation

Inline TLD and word lists are embedded in netlify/functions/validate.mts. To update them, edit the canonical files in the main bigmessage repo's data/ folder and run data/sync-lists.sh.

About

bigmessage — Netlify Functions v2 + Netlify Blobs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors