Run the following commands
python survey_server.py create_db
, this will create the filesurveys.db
which will contain the question contents, users, etc.python survey_server.py add_data sample_data.json
, this populates the database with questionspython survey_server.py add_user jon
to create a user, you will be prompted to enter a passwordpython survey_server.py run
will start a webserver
- Edit the file
survey_form.py
to change the HTML for the survey. - Edit or generate a JSON file similar to
sample_data.json