This code is from the Quickstart guide for getting started with Flatfile.
Rename .env.example
to .env
and update to your creds. This file should look like:
- FLATFILE_ENVIRONMENT_ID=us_env_1234
- FLATFILE_API_KEY=sk_1234
- WEBHOOK_SITE_URL=https://webhook.site/1234
If using javascript, run npx flatfile develop javascript/index.js
to start a local listener.
If using typescript, run npx flatfile develop typescript/index.ts
to start a local listener.
Use npx flatfile deploy <file name>
to deploy your listener to Flatfile
To see all of the code examples from the docs, head to the flatfile-docs-kitchen-sink repo.