This repo includes all of the examples from the Flatfile docs.
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/<path-to-file>.js to start a local listener.
If using typescript, run npx flatfile develop typescript/<path-to-file>.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.