A simple Go webapp for requesting a DoorDash Dasher via the DoorDash Drive (v2) APIs.
Make sure you've got the following environment variables set wherever you'll run the app.
DOORDASH_DEVELOPER_ID: Get this from Developer PortalDOORDASH_KEY_ID: Get this from Developer PortalDOORDASH_SIGNING_SECRET: Get this from Developer PortalGOOGLE_API_KEY: Get a Google Maps API key from the Google Cloud console
Then, run the Go webserver:
cd app && go run main.goOr, you can run it inside a Docker container:
cd app
docker build -t request-a-dasher:latest .
docker run -it -p 8080:8080 request-a-dasher:latestYou can deploy this to an Azure App Service (optimized for minimal monthly cost) using the Pulumi program in infra. You'll need pulumi and the az CLI installed:
cd infra
az login
pulumi stack init dev
pulumi config set azure-native:location WestUS # or your region of choice
pulumi up