meyi-marketplace-onboarding-dev
v1.0.10
Published
Reusable AWS Marketplace onboarding service and UI for Meyi applications
Readme
Marketplace Onboarding
Reusable AWS Marketplace customer-onboarding npm module. The API, migrations, application adapters, static UI, and CloudFormation templates ship as one package.
marketplace-onboarding/
|-- onboarding-service/ Express API, application adapters, AWS orchestration, and migrations
|-- onboarding-ui/ Static onboarding pages, assets, and CloudFormation templates
|-- package.json meyi-marketplace-onboarding package definition
`-- README.mdThe package is import-safe: importing it does not start a server, run migrations,
or schedule jobs. A host application opts into those operations through the
exported API. The same source remains deployable as the standalone
meyiconnect/customer-onboarding Docker image.
Build And Verify
cd marketplace-onboarding
npm run typecheck
npm run check:applicationsThe UI has no build step. Validate its JavaScript modules from the repository root:
node --check marketplace-onboarding/onboarding-ui/assets/js/main.jsBuild the combined image from this directory:
cd marketplace-onboarding
docker build -t meyiconnect/customer-onboarding:dev .Inside the image, the UI is served under /marketplace/ui and
/customer-onboarding/ui.
Use In Meyi Connect
Build the package and install its direct sibling dependency in Meyi Connect:
cd marketplace-onboarding
npm run build
cd ../../meyi-connect/backend
npm installMeyi Connect mounts marketplaceNotificationParser() before its global body
parser, runs runMarketplaceMigrations(), mounts createMarketplaceRouter(),
and starts startMarketplaceJobs() after the HTTP server starts. The bundled UI
is served by the router, so the Meyi Connect frontend does not need a second npm
dependency.
Marketplace onboarding enables automatically when the product code and both SNS
topic ARNs are present. DATABASE_URL, JWT_SECRET, AWS_REGION,
FRONTEND_URL, and MARKETPLACE_ADMIN_SECRET are also required once enabled.
