Skip to content

ojasiiitd/Authentication-Flask-SQLAlchemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication-Flask-SQLAlchemy

A basic flask application which implements a simple User authentication framework with Login, SignUp and Logout options. Databaseing has been done using Flask-SQLAlchemy module, which uses SQLite.

A simple website using Bulma has been used for styling (no external CSS used !). Login and SignUp forms have been made using WTForms.

Instructions to Setup :

  • Fork this repo.
  • Use git clone https://github.com/<your-github-username>/Authentication-Flask-SQLAlchemy.git to clone this repo into your system
  • Install pip3 on your system by sudo apt-get install python3-pip if not already installed.
  • Create a virtual environment by the name of venv. Information in setting up virtualenv can be found here.
  • Enter your virtualenv by source venv/bin/activate
  • Do a pip install -r requirements.txt to install the required packages.
  • All the databasing has been carried out using SQLite, which is pre-installed with Python. A guite to basic SQLite commands can be found here
  • For info on the commands Flask-SQLAlchemy uses to interact with SQLite, click here

Working :

  • Open command line and enter your virtualenv venv.
  • Use python run.py and go to localhost:5000 to show the webpage.