datasync-boilerplate
by contentstack
Use for DataSync wiring—index.js, config, listener, asset/content stores, and Contentstack settings.
npx skills add https://github.com/contentstack/datasync-boilerplate --skill datasync-boilerplateDataSync boilerplate app – Contentstack DataSync Boilerplate
When to use
- Editing startup, checkpoint, or plugin behavior
- Choosing or configuring content store, asset store, or listener modules
- Documenting or fixing integration with Contentstack delivery API / webhooks
Instructions
- Entry point:
index.jsloadsconfig/all.js, mergesconfig/<NODE_ENV>.jswhen that file exists (elseconfig/development.js), optionally reads a checkpoint file forsync_token, then wiresdatasyncManagerwith listener, asset store, and content store from module paths in config (listenerModule,assetStoreModule,contentStoreModule). - Configuration: Put stack credentials and module names in
config/—see product docs in rootREADME.mdforapiKey, delivery token,host, and webhook setup (ngrok,/notify, publish actions). - Published packages: Behavior is implemented in
@contentstack/datasync-manager,@contentstack/webhook-listener, and the filesystem/MongoDB store packages listed inpackage.json; this repo only composes them. - Plugins: Custom plugins live under
plugins/per patterns already described inconfig/all.js.