Skip to content

PaintingWithCode/til

Repository files navigation

Today I Learned

A miniblog that catalogues the things I learn day-to-day in software development.

Inspired by the TIL blogs of Hashrocket and Simon Willison and to "learn in public" by swyx.

Stack

Running locally

# Setup
pnpm i
pnpm db:setup

pnpm dev

Shell Commands

  • To scaffold a new post:

    pnpm scaffold-post
  • To seed post stats to database:

    pnpm db:seed-stats

    Note: If you're using a local db, this must be done after publishing a post since stats are only updated by the API and never inserted. Production database is automatically updated by CI on pushes to main.

  • To migrate database schema changes:

    pnpm db:migrate

Cloning / Forking

Please review the license and ensure you change the personal information in src/lib/core/config.ts before deploying.

You're free to retain the posts since it's meant to be knowledge that's shared :)