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:
1ENTHUSIAST_API_URL=http://localhost:100002ENTHUSIAST_WS_URL=ws://localhost:100003ENTHUSIAST_SERVICE_ACCOUNT_TOKEN=<generated-service-account-token>4ENTHUSIAST_INTEGRATION_NAME=Medusa5ENTHUSIAST_MEDUSA_BACKEND_URL=http://host.docker.internal:90006ENTHUSIAST_MEDUSA_ADMIN_URL=http://localhost:9000
Add below entry to your plugins array:
1{2 resolve: "@upsidelab/medusa-plugin-enthusiast",3 options: {4 enthusiastApiUrl: process.env.ENTHUSIAST_API_URL,5 enthusiastWSUrl: process.env.ENTHUSIAST_WS_URL,6 enthusiastServiceAccountToken: process.env.ENTHUSIAST_SERVICE_ACCOUNT_TOKEN,7 enthusiastMedusaIntegrationName: process.env.ENTHUSIAST_INTEGRATION_NAME,8 medusaBackendUrl: process.env.ENTHUSIAST_MEDUSA_BACKEND_URL,9 medusaAdminUrl: process.env.ENTHUSIAST_MEDUSA_ADMIN_URL,10 }11}
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: