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
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
Home page
After filling out form
Admin panel login page
Admin dashboard
- Python 3.7.0
- Flask 1.1.1
- PostgreSQL
- HTML / CSS / JS
- Bootstrap 4.3.1
- mailtrap.io