Medusa plugin for Enthusiast integration.
A Medusa plugin that integrates with Enthusiast.
Install the plugin in your Medusa project:
npm install @upsidelab/medusa-plugin-enthusiast
Set you .env file in project root directory:
ENTHUSIAST_API_URL=http://localhost:10000ENTHUSIAST_WS_URL=ws://localhost:10000ENTHUSIAST_SERVICE_ACCOUNT_TOKEN=<generated-service-account-token>ENTHUSIAST_INTEGRATION_NAME=MedusaENTHUSIAST_MEDUSA_BACKEND_URL=http://host.docker.internal:9000ENTHUSIAST_MEDUSA_ADMIN_URL=http://localhost:9000
Add below entry to your plugins array:
{resolve: "@upsidelab/medusa-plugin-enthusiast",options: {enthusiastApiUrl: process.env.ENTHUSIAST_API_URL,enthusiastWSUrl: process.env.ENTHUSIAST_WS_URL,enthusiastServiceAccountToken: process.env.ENTHUSIAST_SERVICE_ACCOUNT_TOKEN,enthusiastMedusaIntegrationName: process.env.ENTHUSIAST_INTEGRATION_NAME,medusaBackendUrl: process.env.ENTHUSIAST_MEDUSA_BACKEND_URL,medusaAdminUrl: process.env.ENTHUSIAST_MEDUSA_ADMIN_URL,}}
After installing and configuring the plugin, run database migrations to create the required tables:
npx medusa db:migrate
Run command on your Enthusiast instance or go to in Enthusiast to generate Admin permission service account token. Command:
python manage.py createadminserviceaccount -n <name of your integration>
Once installed and configured, you can access the Enthusiast plugin in your Medusa Admin: