Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.43 KB

README.md

File metadata and controls

64 lines (45 loc) · 1.43 KB

flask-registration-sqlite

PyPI

This is an web app created for a fictitious crypto group enthusiast. The backend support is mostly built with python with some javascript on the templates. It features the following:

  • User registration with user verification through email + token
  • User login after verification, with access to different webpages based on role
  • Role based permission using decorators
  • Database for storage

Prerequisites

  • Python 3.4.2+
  • Python extensions
  • SQLite

Installation

  • Python 3.4.2+ can be downloaded here
  • SQLite can be downloaded here
  • You can install Python packages by running pip on your command like:
python3 pip install Flask-SQLAlchemy
  • DBBrowser for SQLite can be downloaded here (optional)

QuickStart

Update Configuration settings

  1. Secret key and security salt
  2. Database URI
  3. Email settings

Set the configuration settings

$ export APP_SETTINGS="project.config.DevelopmentConfig"

or

$ export APP_SETTINGS="project.config.ProductionConfig"

Note: For windows use set instead of export

Create the database

$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin

Run

$ python manage.py runserver