An example Flask application that serves as a proxy to Mixpanel's Ingestion API and JavaScript library endpoints. To learn more, visit our Self-Hosted Tracking Docs.
There are a few ways you can use this repo to deploy a server that can be use to proxy Mixpanel API requests. Again, this should only be used for testing purposes. You'll want to make your own customizations and productionalize the deploy before going live.
Assuming you have Docker installed on your system, you can do the following:
- Clone the repo
- Build the Docker image:
docker build -t mixpanel-proxy .
- Run a container using the image:
docker run -d -p 5000:5000 mixpanel-proxy
- Visit
http://localhost:5000
- Clone the repo
- Install dependencies
pip install -r requirements.txt
- Start the app
python flask_proxy/app.py
- Visit
http://localhost:5000
- Clone the repo
- Install dependencies
pip install -r requirements.txt
- Run tests
pytest