bites-development / bites-connector
Bites Middleware
Installs: 2 559
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
pkg:composer/bites-development/bites-connector
README
composer require bites-development/bites-connector
Run Vendor
php artisan vendor:publish --tag="bites"
Add Middleware DB Config at env file
MASTER_DB_HOST
MASTER_DB_USER
MASTER_DB_PASSWORD
MASTER_DB_DATABASE
Plan Schema Sync (Connector -> Middleware)
Export plan form schema/options from the app code and sync it to middleware mapper storage:
php artisan bites:sync-plan-schema
Useful flags:
php artisan bites:sync-plan-schema --dry-run php artisan bites:sync-plan-schema --table=subscriptions --app-prefix=mart
Required env (recommended):
MIDDLEWARE_SERVER=middleware-no.test BITES_APP_PREFIX=mart BITES_MIDDLEWARE_API_TOKEN=your-shared-token
Optional env:
BITES_PLAN_SCHEMA_SYNC_ENABLED=true BITES_PLAN_SCHEMA_SYNC_ENDPOINT=/api/webhooks/plans/schema-sync BITES_PLAN_SCHEMA_SYNC_TIMEOUT=20 BITES_PLAN_SCHEMA_MAX_SNIPPETS=20 BITES_PLAN_SCHEMA_MAX_SNIPPET_CHARS=12000