Skip to content

tonydero/Simple-Flask-Form

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Flask Form

This project was built using

  • HTML
  • CSS
  • Python
  • Flask (micro web framework)
  • Flask SQLAlchemy (Flask extension for managing database)
  • Flask-WTF. It is a built-in module of flask which allows for designing forms in your application, so you don't have to hard code everything in your HTML file.
  • Sqlite database.

I wrote all of the backend code with modifications to the HTML and CSS templates. The home page displays a form that the user can fill out (name, phone number, email, and job title). When the user fills out the form, their information is entered into the database.

Form Page


A "Than you for Registering" page will display, and the user will have the option of entering a new user or viewing the entire database of people.

Submitted Page


On the database page, the user can delete or modify a person's information.

Database Page



How to use this Project

Download the files using the git clone command.

$ git clone <link to project>

Create your virtual environment

$ python3 -m venv env
$ source env/bin/activate

I created the requirements.txt file using the pip freeze command. Install all dependencies from the requirements.txt file.

$ pip install -r requirements.txt

Run the app.py file

$ python3 app.py

Type in http://localhost:5000 into your browser to view the project live.

About

Built using Python Flask. Add, edit, or remove data from database using Flask SqlAlchemy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 39.3%
  • Python 36.5%
  • CSS 24.2%