Before you begin
Get your keys
To complete this tutorial, you'll need to retrieve your Publishable key from yourdevelopment
environment.
Note: The Publishable Key is safe to be used in client-side applications as it
has limited access to the Flatfile API.
new
command.
Build your importer
1. Initialize Flatfile
In yourapp.component.ts
you’ll need to pass in a minimum of the publishableKey
.
2. Start your client
Now, start your front end by heading to the terminal and running the following command.3. Build a workbook
Now, let’s build a Workbook inside the Space for next time. Add yourconfig.ts
file, and place the following code in it. After you have done so, import the configuration to app.component.ts
, and update spaceProps
to have the value of config
under workbook
. This config file has the configuration settings for your workbook, so feel free to edit however necessary to meet your needs.
4. Transform Data
Next, we’ll listen for data changes and respond using an event listener.- Add a
src/listeners/listener.ts
file with this simplerecordHook
. - Update
app.component.ts
to import the listener.
5. Match your brand
By attaching athemeConfig
to spaceProps
, we will now override colors in your Space to match your brand. See all of the options here in the Theming Reference.