Skip to content

Deploy Locally

Carlos Paradis edited this page Sep 28, 2017 · 1 revision

Python Dependencies

 * pip3 install flask
 * pip3 install Flask-SQLAlchemy
 * pip3 install flask-login
 * pip3 install flask-limiter
 * config.json needs to exist in `survey_admin` folder. File currently resides on the server. I added it to the `.gitignore` just to be safe on commit 0fd7ade and 7e4f4eb. 
 * pip3 install flask_wtf
 * pip3 install passlib
 * pip3 install psycopg2 

Postgres Database

Besides the tables pg_dump can generate, the following roles need to be created in a local database:

  • eileen
  • sepgroup_nonmsg
  • webuser
    • Also needs to have permissions LOGIN and WITH PASSWORD, where the password is the one available in config.json.

Remember only the full dump will work to access since the login/pass is also stored in the database.

Aditional files from our IT Server

The files survey_admin/config.json and survey_admin/ubuntuStation/database.py needs to be downloaded directly from the server on /var/www/ubuntuStation/config.json and /var/www/ubuntuStation/database.py respectively.

Run

python3 run.py

Opens the app on localhost on port 8080 to be accessed on the web-browser.

Some references to improve this: