DigitalSurvey
First configuration
- clone the repo
git clone git@github.com:FarhanGazi/digital-survey.git
- connect to postgresql database
- Execute the first
sql
script located inside db/
folder of digital-survey
project
database => \i ~/path/to/digital-survey/db/script1.sql
- Go inside digital-survey project dir
cd ~/path/to/digital-survey
- Create
config.yaml
file in the root of digital-survey
folder in the following format:
ds:
database:
driver: postgresql
username: username
password: password
host: localhost
port: 5432
databasename: databasename
application:
secretkey: secret
admin:
database:
driver: postgresql
username: username
password: password
host: localhost
port: 5432
databasename: databasename
application:
secretkey: secret
panelist:
database:
driver: postgresql
username: username
password: password
host: localhost
port: 5432
databasename: databasename
application:
secretkey: secret
- Create virtual evnvironment in
python3
and intsall all the packeges
cd ~/path/to/digital-survey
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- Create project environment variables
export FLASK_APP=ds
export FLASK_ENV=development
- Run the project
- From the project database
ds
execute the second script
psql ds
ds => \i ~/path/to/digital-survey/db/script2.sql
- That's it! Enjoy Digital Survey ;)