Skip to content

szymcio32/fask-survey-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask survey application

Event feedback application built with Flask. A user can fill out the survey and send the answer to the admin. After filling the form admin will be automatically notify via email that somebody has sent a filled form.

There is also a admin dashboard, which contain all survey results sent by users.

The purpose of the project was to learn Flask Framework

Setup

METHOD 1

  • Create a virtual environment
python -m venv venv
  • Add a postgres database uri to environment variables
set DATABASE_URI=postgresql://<username>:<password>@<host>
  • Add username and password for your mailtrap account
set MAIL_USERNAME=<username>
set MAIL_PASSWORD=<password>
  • In survey-flask-app directory run command:
python setup.py install
  • After that run command
flask-survey-app 

METHOD 2

  • Create a virtual environment
python -m venv venv
  • Add a postgres database uri to environment variables
set DATABASE_URI=postgresql://<username>:<password>@<host>
  • Add username and password for your mailtrap account
set MAIL_USERNAME=<username>
set MAIL_PASSWORD=<password>
  • Install packages from requirements.txt
pip install -r requirements.txt
  • After that run command
python flask_survey_app\survey_app.py

Example of app

Home page

flask-home-1

flask-home-2

After filling out form

flask-success

Admin panel login page

flask-admin-login

Admin dashboard

flask-admin-panel

Technologies

  • Python 3.7.0
  • Flask 1.1.1
  • PostgreSQL
  • HTML / CSS / JS
  • Bootstrap 4.3.1
  • mailtrap.io

About

Survey app build with flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published