claudiorivera / airtable-nestjs-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Airtable With NestJS

This is one example of using Airtable with NestJS. It is based off of nestjs-twilio and leverages the airtable module for the heavy lifting. The biggest thing it does is chunk up requests to Airtable, since the API is limited to 10 records at a time.

The included todos service has basic CRUD functionality and returns a plain object, but can also return the Airtable record by passing returnAirtableRecord: true as an optional argument to the different methods.

Feedback welcome!

Prerequisites

  • pnpm
  • An Airtable base with a table named todos with columns:
    • description (single line text)
    • isComplete (checkbox)

Install

  • pnpm i

Config

  • cp .env.sample .env and update values

Develop

  • pnpm dev

Test

  • 🤷🏻

About

License:MIT License


Languages

Language:TypeScript 94.6%Language:JavaScript 5.4%