Git Product home page Git Product logo

flask-tracking-proxy's Introduction

Mixpanel Flask Proxy Example

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.

โš ๏ธ This is meant to be used for demonstration purposes only. You should not run this in production without making changes to the deployment.

Installation

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.

Option 1: One-click Deploy

Option 2: Docker Image

Assuming you have Docker installed on your system, you can do the following:

  1. Clone the repo
  2. Build the Docker image: docker build -t mixpanel-proxy .
  3. Run a container using the image: docker run -d -p 5000:5000 mixpanel-proxy
  4. Visit http://localhost:5000

Option 3: Run the Flask application directly

  1. Clone the repo
  2. Install dependencies pip install -r requirements.txt
  3. Start the app python flask_proxy/app.py
  4. Visit http://localhost:5000

Running Tests

  1. Clone the repo
  2. Install dependencies pip install -r requirements.txt
  3. Run tests pytest

flask-tracking-proxy's People

Contributors

jbwyme avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.