Skip to content

A Python Flask web app that enables a user to fill out a survey and view results in a styled table

Notifications You must be signed in to change notification settings

shepherdlewis000/survey-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of a Python Flask/Jinja/Bootstrap web app that enables a user to

  • fill out a form (a la Google Forms), the results of which are saved to a comma-separated value (CSV) file on the server
  • view a table of all submissions received (a la Google Sheets)

DEMO: https://survey-csv.herokuapp.com

app.py: the web app's controller. Imports csv, and from flask import Flask, redirect and render_template. Configures Flask, defines routes, server-side form validation, writes to survey.csv & redirects to /sheet. get_sheet reads past submissions and displays in HTML table

templates/layout.html: the app's layout in an HTML structure all views will share

templates/form.html: the actual form styled with Bootstrap, Javascript for form validation

templates/error.html: template for error message(s)

templates/sheet.html: Bootstrap styled table enhanced via BS4/jQuery DataTables to sort selected table columns

static/styles.css: CSS properties for the app's views

About

A Python Flask web app that enables a user to fill out a survey and view results in a styled table

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published