0.0.1 • Published 8 months ago
@nylas/notebook-api v0.0.1
Notebook API
Rest API written in NodeJS/Typescript. Fastify, Posgres.
Drizzle ORM Workflow
Generate a Migration File
# Generate a migration
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).
# Run migrations
npx drizzle-kit migrate
# On local you can use
npx drizzle-kit pushWebhooks
To debug webhooks, you can use:
cloudflared tunnel --url http://localhost:4000Bucket
# gcloud projects list
# gcloud iam service-accounts list
gcloud projects add-iam-policy-binding nylas-453608 \
--member="serviceAccount:my-service-account@nylas-453608.iam.gserviceaccount.com" \
--role="roles/storage.admin"0.0.1
8 months ago