Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
parkpow
GitHub Repository: parkpow/deep-license-plate-recognition
Path: blob/master/webhooks/middleware/README.md
1082 views

Middlewares

Refer to this guide to get started with the middlewares.

How to Run

  1. Build the Docker Image:

    docker build -t webhook-middleware .
  2. Run the Middleware:

    • If your stream service is already running and you want just the middleware to run:

    docker run --env-file .env -p 8002:8002 webhook-middleware
    • If your stream service is not running and you want to run both the middleware and the stream service:

    docker compose up

Environment Variables Setup

Set the required environment variables in a .env file.

ℹ️ A sample .env file is included in the repository for reference.

Required for running the middleware with Docker Compose (integrated with Stream):

STREAM_LICENSE_KEY=your_license_key_here STREAM_API_TOKEN=your_api_token_here

If using the strip_plate protocol, also include:

WEBHOOK_URL=https://app.parkpow.com/api/v1/webhook-receiver/ PARKPOW_TOKEN=your_parkpow_token