Web app to keep track of housekeeping.
- First a credentials.txt is required in the project root. This should contain the necessary information for postgresql. The file should look like like:
user:username
db:databasName
table:tableName
- Postgresql:
$ sudo apt-get install postgreql
- Python package for postgresql
$ sudo apt-get install python-psycopg2
- Optional remove startup scripts for postgresql:
$ sudo update-rc.d -f postgresql remove
- The database script is set to use a user with no password. Hence the database can only be accessed locally. The postgresql might require username to be the same as unix username.
- baglerPage.py is the script with the flask part. To run on local network: $ python baglerPage.py.
- To reset database table, run: $ python resetDb.py