Skip to content
Public template

About

Template to get you started with writing a DevRev Airdrop snap-in

Resources

Stars

1 star

Watchers

15 watching

Forks

Latest commit

 

History

76 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AirSync snap-in template

This repository provides a template to implement an AirSync snap-in that imports data from an external system into DevRev.

Usage

  1. Select Use this template > Create a new repository.
  2. Name the repository airsync-<external-system-name>-snap-in.
  3. Clone the repository and switch to your working branch.

With Python 3.9 or newer and an authenticated GitHub CLI, run the initializer from the repository root.

python3 .github/scripts/initialize.py

The initializer takes the connector name from the Git origin and adds your GitHub login to CODEOWNERS. Pass --owning-team org/team-slug to add a team.

Commit the setup changes together on your working branch and follow the generated README.

Documentation

See the AirSync snap-in documentation for development guidance.

The template uses @devrev/airsync-sdk and requires Node.js 20 or newer.

Local Fixture Testing

From the code/ directory, you can run the built-in fixture runner to test the template locally:

npm start -- --fixturePath start_extracting_external_sync_units
npm start -- --fixturePath start_extracting_data
npm start -- --fixturePath start_extracting_data_selective
npm start -- --fixturePath start_loading_data

The runner reads code/.env and resolves ${TODO_API_KEY} in fixture files, so copy code/.env.example before running the fixtures. The fixture runner and local test server set AIRSYNC_LOCAL_DEVELOPMENT=1 to enable local logging and artifact copies in code/extracted_files/.

About

Template to get you started with writing a DevRev Airdrop snap-in

Resources

Stars

1 star

Watchers

15 watching

Forks

Used by

Contributors

Languages