This is part of the Flatfile Coding Tutorial, specifically the "Adding Validation" step.
📖 Tutorial: 101.02 Adding Validation
-
Install dependencies:
npm install
-
Set up environment variables:
cp .env.example .env
Edit
.envwith your Flatfile credentials. -
Run the development server:
npx flatfile develop
This example shows how to add validation to your Flatfile listener using JavaScript, building on the basic listener from the previous step.