Learn to set up a basic Listener with Space configuration to define your data structure and workspace layout.
mkdir my-flatfile-listener && cd my-flatfile-listener
).env
and add the following (populated with your own values):
index.js
for Javascript or index.ts
for TypeScript:
.env
file:
flatfile develop
command. This will start a local server that implements your custom Listener code, and will also watch for changes to your code and automatically reload the server.
listener
object as an argument, and then uses that listener to respond to Events.
space:configure
job that your Listener can handle. This code listens for that job using the job:ready
Event, filtered by the job name space:configure
.