Skip to content

Instantly share code, notes, and snippets.

@dnewber
Created April 1, 2020 14:42
Show Gist options
  • Select an option

  • Save dnewber/ce0103889fc3112509fb5efc9c648ae6 to your computer and use it in GitHub Desktop.

Select an option

Save dnewber/ce0103889fc3112509fb5efc9c648ae6 to your computer and use it in GitHub Desktop.

Maphabit Middleware Local Setup

  1. Clone the following Github repos:
  2. Create a python3 virtualenv for mhmid
  3. Install the middleware requirements: pip install -r mhmid/requirements.txt
  4. Install all the modules: pip install -e . in each repo directory
  5. Create a .env file in the /mhmid directory. This provides all the secret keys/settings as environment variables. This file is not checked into version control.
  6. To setup the middleware console front-end, in /mhmid/ui run npm install

Start the Flask Application: flask run --port 5001

Start the UI in /mhmid/ui run npm start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment