A local Laravel app that simulates AppSumo's marketplace, webhook sender, and OAuth server for end-to-end testing of a client's AppSumo integration.
cd appsumo
composer install
cp .env.example .env # then configure (see below)
php artisan key:generate
php artisan migrateUses MySQL. Create the database first:
CREATE DATABASE appsumo;Point appsumo.test at the project via Valet/Herd, or:
php artisan serve --port=8001# Where to send webhooks (client webhook endpoint)
CLIENT_WEBHOOK_URL=http://client.test/appsumo/webhook
CLIENT_API_KEY=shared-secret-with-client
# Where to redirect after OAuth authorize (client callback)
CLIENT_OAUTH_REDIRECT_URL=http://client.test/appsumo/callback
# OAuth credentials (must match client .env)
APPSUMO_CLIENT_ID=mock-client-id
APPSUMO_CLIENT_SECRET=mock-client-secretAdd these to your client .env so it talks to the mock instead of appsumo.com:
APPSUMO_CLIENT_ID=mock-client-id
APPSUMO_CLIENT_SECRET=mock-client-secret
APPSUMO_API_KEY=shared-secret-with-client
APPSUMO_OAUTH_REDIRECT_URL=http://client.test/appsumo/callback
APPSUMO_OAUTH_TOKEN_URL=http://appsumo.test/openid/token/
APPSUMO_OAUTH_LICENSE_KEY_URL=http://appsumo.test/openid/license_key/
APPSUMO_API_BASE_URL=http://appsumo.test