Skip to content

faros-ai/custom-faros-destination-example

Repository files navigation

Custom Faros Destination Example

This repository contains an example of a custom Airbyte Faros destination allowing writing data into Faros from any custom source. Please refer to the documentation for more information about this feature.

Development

  1. Install nvm
  2. Install Node.js nvm install 16 && nvm use 16
  3. Install lerna by running npm install -g npm lerna @lerna/legacy-package-management
  4. Run npm i to install dependencies for all projects (npm run clean to clean all)
  5. Run npm run build to build all projects (for a single project, add scope, e.g., npm run build -- --scope example-destination)
  6. Run npm run test to test all projects (for a single project, add scope, e.g., npm run test -- --scope example-destination)
  7. Run npm run lint to apply linter on all projects (for a single project, add scope, e.g., npm run lint -- --scope example-destination)

Other Useful Commands

  1. Audit fix npm audit fix
  2. Clean your project npm run clean

Read more about lerna here.

Build Docker Images

To build a Docker image for a destination, run the docker build command and set path and version arguments.

For example, for the example-destination run:

docker build . --build-arg path=destinations/example-destination --build-arg version=0.1.0 -t example-destination