Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.6 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.6 KB

gpwahlomat

An application to help voters see which political parties are the best fit to their beliefs.

setup

  1. Clone repo
  2. cd to repo folder
  3. pip install -r requirements.txt
  4. Rename configcfg.txt to config.cfg and edit the contents.
  5. to db create run follow commands in PSQL Commandline
  6. create a user run CREATE USER wahlomat WITH Password 'wahlomat';
  7. create a DB with owner wahlomat run CREATE DATABASE wahlomat OWNER wahlomat;
  8. You will need a local postgresql install and to have a user named wahlomat, then run this: python db_create.py
  9. python gpwahlomat/run.py

After doing this you will have a local database with the needed tables and the app can be reached at port 5000.

setup windows

  1. install Visual C++ Build Tools from http://landinghub.visualstudio.com/visual-cpp-build-tools
  2. install Python3 for windows
  3. install PostgreSQL from http://www.bigsql.org/postgresql/installers.jsp
  4. Clone repo
  5. cd to repo_folder
  6. run pip install virtualenv as admin
  7. cd repo_folder and virtualenv venv
  8. change in virtual environment call venv\Scripts\activate.bat
  9. pip install -r requirements.txt
  10. Rename configcfg.txt to config.cfg and edit the contents.
  11. to db create run follow commands in PSQL Commandline
  12. create a user run CREATE USER wahlomat WITH Password 'wahlomat';
  13. create a DB with owner wahlomat run CREATE DATABASE wahlomat OWNER wahlomat;
  14. then run this python db_create.py
  15. python gpwahlomat/run.py