Skip to content

Jeevan-bhandari-git/flask-sqlite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask_sqlite

A Flask Application that demonstrates Flask-WTF and Flask-SQLAlchemy using a SQLite database.

Instructions

As always ensure you create a virtual environment for this application and install the necessary libraries from the requirements.txt file.

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Start the development server

$ python run.py

Browse to http://0.0.0.0:8080

You can then add new users by browsing to http://0.0.0.0:8080/add-user and view a list of users by browsing to http://0.0.0.0:8080/users

To reset the users table, run the following SQL query:

DROP TABLE IF EXISTS users;
CREATE TABLE users (
  id integer primary key autoincrement,
  name string not null,
  email string not null
);

About

An example Flask app using an SQLite database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 51.6%
  • Python 41.0%
  • JavaScript 5.6%
  • TSQL 1.5%
  • CSS 0.3%