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:
- git clone the repository
git clone https://github.com/Cbsoftware/pressureNETAnalysis.git
- Set up virtualenv (using virtualenvwrapper) for the project:
I followed the directions on the ArchLinux wiki for doing this: https://wiki.archlinux.org/index.php/Python_VirtualEnv#Virtualenvwrapper
- Activate virtualenv (using virtualenvwrapper):
- 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
- Copy settings_local.py.ex to settings_local.py 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.
- Create the database and run through the database migrations:
./manage.py syncdb && ./manage.py migrate
- Run the server:
./manage runserver 0:8000
- 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.