HowTo: Setup pressureNET Analysis for Local Development

The pressureNET project is an Android app that collects barometric data. You can download it here.

The backend server, pressureNET Analysis, is a Django app that stores the data that is collected by the Android app.

The project is free/open source and is licensed under the GNU GPL (General Public License), version 3 . My friend Jared Kerim works on it and is actually the CTO of the company so I decided to take a crack at setting it up locally, because what’s the point of making something free/open source if no one aside from the project maintainers is checking it out.

Here are the steps I used to setup pressureNET Analysis for local development:

  1. git clone the repository
    git clone
  2. Set up virtualenv (using virtualenvwrapper) for the project:
    mkvirtualenv pressurenet

    I followed the directions on the ArchLinux wiki for doing this:

  3. Activate virtualenv (using virtualenvwrapper):
    workon pressurenet
  4. Install all the local packages using pip:
    pip install -r requirements.txt

    Make sure that mysql is installed locally so that MySQL-python can be installed

  5. Copy to and fill in the database settings (database name, username, password).
    Note: I’m using postgres locally so I also had to change the database backend from django.db.backends.mysql to django.db.backends.postgresql_psycopg2 and I had to install the psycopg2 package separately and had to make sure the postgresql-server-dev files were installed before doing that.
  6. Create the database and run through the database migrations:
    ./ syncdb && ./ migrate
  7. Run the server:
    ./manage runserver 0:8000
  8. Check out how it looks in your browser:

And that’s that. Unfortunately there’s no test data in there so you’ll have to do that on your own for now.

Leave a Reply and Share Your Thoughts