Skip to content

terracota-p/val-birthday

Repository files navigation

val-birthday

Celebrate Val's birthday.

Content:

Install

npm install

One-time setup

You should end up with an .env file (similar to .env-sample):

DB

Set up vercel kv, eg:

vercel link
vercel env pull .env.development.local
# rename to work around some issue with the no-config kv setup
mv .env.development.local .env

Quotes API key

Optionally sign up to api-ninjas and set API key in .env to get quotes when generating knowledge:

API_NINJAS_KEY="<your-api-key>"

Run

# start dev server and open app in browser
npm run dev -- --open

Test

# unit & integration tests
npm test

Build

Prod version:

npm run build

Preview the production build: npm run preview.

Tech

  • web - a tool that supports SSR + progressive enhancement and SPA: svelte-kit.
  • DB - a key-value store with a reasonable free tier: vercel-kv.
  • hosting - a cloud service with a reasonable free tier: vercel.

Options considered