Skip to content

t1merickson/bigmessage-vercel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

bigmessage — Vercel

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 Vercel Serverless Functions with Vercel Blob for storage.

Stack

  • Compute: Vercel Serverless Function (Node.js)
  • Storage: Vercel Blob — state stored as a single JSON blob
  • Entry point: api/index.ts

Setup

  1. Create a Vercel project and connect this repo
  2. Add a Blob store in the project's Storage tab — this provisions BLOB_READ_WRITE_TOKEN automatically
  3. Deploy
npm install
vercel deploy --prod

Dev

vercel env pull
vercel 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 api/index.ts. To update them, edit the canonical files in the main bigmessage repo's data/ folder and run data/sync-lists.sh.

About

bigmessage — Vercel Serverless Functions + Blob

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors