Giter Club home page Giter Club logo

server-side-training's Introduction

Images

A sample environment for engineers to practice integrating Mixpanel identity management, events, and people properties

  • Images app with basic login, signup, and logout flow
  • Allows a user to continuously get more images

Setup

Download the sample app

Set up the Python environment for the app to use

  • Install homebrew if you haven't already. Homebrew is the standard way to install many command line programs on Macs.
  • Install pipenv with brew install pipenv
  • Add the directory where pipenv was installed to your $PATH so your terminal can find the new "pipenv" program you just installed. Probably "/usr/local/bin/". Depending on your setup try this command: echo "export PATH=$PATH:/usr/local/bin" >> $HOME/.bashrc
  • Run pipenv install in the directory where the "Pipfile" file is located
    • If pipenv complains about a missing Python version, install it with homebrew (do a quick google search)
  • Run pipenv shell to activate the Python environment

Run the local server!

  • In the directory with the "manage.py" file:
    • Run python manage.py migrate (this sets up the database tables)
    • Then, run python manage.py runserver
  • Go to your web browser and type in localhost:8000. You should see the local web app!
  • You can stop the server with ctrl-c

Mixpanel Practice (Practical)

  • Initialize / insert Mixpanel into the sample app (make sure you have downloaded this app and that it runs)
  • Track events with event properties client-side (follow the chart below, and add any other event and event properties as you deem necessary. Do not use Autotrack)
  • Track events with event properties server-side (follow the chart below, and add any other event and event properties as you deem necessary)
  • Track people profiles with people properties (follow the chart below, and add any other people property you deem necessary)
  • Reset the distinct_id upon logout
  • Integrate identity management with server-side alias and identify client-side, and alias the username to the client-side distinct_id
  • Pass the distinct_id from the client to the server and vice versa

server-side-training's People

Contributors

yayc avatar catliaw avatar mpsupport avatar

Watchers

James Cloos avatar  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.