https://github.com/danielc92/flask_login_system
Repository containing login/register system for a python flask app using postgres as backend.
https://github.com/danielc92/flask_login_system
Last synced: about 2 months ago
JSON representation
Repository containing login/register system for a python flask app using postgres as backend.
- Host: GitHub
- URL: https://github.com/danielc92/flask_login_system
- Owner: danielc92
- Created: 2018-09-12T01:29:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T02:39:35.000Z (over 7 years ago)
- Last Synced: 2025-03-20T08:51:32.274Z (over 1 year ago)
- Language: HTML
- Size: 261 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Login System
Creating a simple login system for a `flask` web application which is able to authenticate users into particular routes within the application.
# Before you get started
Should have a basic understanding of web applications, requests (POST/GET) and basic python skills. You should also understand how ORM works (`sqlalchemy`) and the concept of hashing passwords with `hashlib`. The backend database for this project is `postgres`, an open source free to use relational database.
# Setup
**How to obtain this repository:**
```sh
git clone https://github.com/danielc92/flask_login_system.git
```
**Modules/dependencies:**
- `flask`
- `sqlalchemy`
- `pandas`
- `hashlib`
- Installation of `postgres` database (alternatively you can use `sqlite3`)
Install the following dependences:
```sh
pip install flask sqlalchemy pandas hashlib
```
To run locally:
```sh
python3 main.py
```
# Tests
- Testing posting user credentials through login page
- Validated data sent through post
- Cross check data validated vs data hashed in database
- Users can log in successfully
# Contributors
- Daniel Corcoran
# Sources
- [flask documentation](http://flask.pocoo.org/)