Skip to content

Cbsoftware/pressureNET-server

 
 

Repository files navigation

pressureNETAnalysis

Web-based data viewer for pressureNET

Local Development Setup

  1. Set up virtualenv (using virtualenvwrapper):

    mkvirtualenv pressurenet
    
  2. Activate virtualenv

    workon pressurenet
    
  3. Install all the local packages using pip:

    pip install -r requirements.txt
    
  4. Copy settings_local.py.ex to settings_local.py and fill in the database settings (database name, username, password).

  5. Create the database and run through the database migrations:

    ./manage.py syncdb && ./manage.py migrate
    
  6. Run the server:

    ./manage.py runserver 0:8000
    

Check out how it looks in your browser: http://localhost:8000/ and http://localhost:8000/admin/

Local Development Setup Using PostgreSQL

Replace the MySQL-Python package in requirements.txt with psycopg2. Make sure the postgresql-server-X.Y-dev package is installed.

Change the database backend from django.db.backends.mysql to django.db.backends.postgresql_psycopg2.

About

Web-based data viewer for pressureNET

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 39.9%
  • Python 28.3%
  • CSS 24.0%
  • HTML 6.7%
  • Makefile 0.5%
  • Shell 0.5%
  • Elixir 0.1%