0.0.1 • Published 8 months ago

@nylas/notebook-api v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

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 push

Webhooks

To debug webhooks, you can use:

cloudflared tunnel --url http://localhost:4000

Bucket

# 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"