Notebook API
Rest API written in NodeJS/Typescript. Fastify, Posgres.
Drizzle ORM Workflow
Generate a Migration File
npx drizzle-kit generate --name=init
Scans schema.ts and creates a migration file based on changes.
Run this after modifying your schema (adding/removing/modifying tables).
npx drizzle-kit migrate
npx drizzle-kit push
Webhooks
To debug webhooks, you can use:
cloudflared tunnel --url http://localhost:4000
Bucket
gcloud projects add-iam-policy-binding nylas-453608 \
--member="serviceAccount:my-service-account@nylas-453608.iam.gserviceaccount.com" \
--role="roles/storage.admin"