β―οΈ flask_func_struct_vue is framework for creating/building flask-vue Apps.
Developed in π python code.
The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.
Table of Contents
Used next development environment
Navigate to release page download and extract release archive π¦.
To install flask_func_struct_vue π¦ type the following
tar xvzf flask_func_struct_vue-x.y.z.tar.gz cd flask_func_struct_vue-x.y.z pip install -r requirements.txt cp manage.py /FlaskApp/ cp -R /manage_commands/ /FlaskApp/ cp -R /app_server/ /Flask/
Or You can use Dockerfile to create image/container π’.
Create databse
$ python manage.py create_db Create database/tables Done
Init databse and prepare alembic table
$ python manage.py db init Creating directory /data/dev/python/flask_func_struct_vue/github/flask_func_struct_vue/migrations ... done Creating directory /data/dev/python/flask_func_struct_vue/github/flask_func_struct_vue/migrations/versions ... done Generating /data/dev/python/flask_func_struct_vue/github/flask_func_struct_vue/migrations/env.pyc ... done Generating /data/dev/python/flask_func_struct_vue/github/flask_func_struct_vue/migrations/env.py ... done Generating /data/dev/python/flask_func_struct_vue/github/flask_func_struct_vue/migrations/alembic.ini ... done Generating /data/dev/python/flask_func_struct_vue/github/flask_func_struct_vue/migrations/README ... done Generating /data/dev/python/flask_func_struct_vue/github/flask_func_struct_vue/migrations/script.py.mako ... done Please edit configuration/connection/logging settings in '/data/dev/python/flask_func_struct_vue/github/flask_func_struct_vue/migrations/alembic.ini' before proceeding.
Generate a migration script that makes the database match the models
$ python manage.py db migrate INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [alembic.env] No changes in schema detected.
Create super user
$ python manage.py createsuperuser Creating superuser account Insert username of superuser: adroot Insert email of superuser: adroot@test.com Insert password of superuser: Done
Run application
$ python manage.py runserver * Serving Flask app "app_server" (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: on * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger PIN: 226-526-932
flask_func_struct_vue requires other modules and libraries (Python 2.x)
alembic 1.6.5 Flask 1.1.4 Flask-Bcrypt 1.0.1 Flask-Bootstrap 3.3.7.1 Flask-Cors 3.0.10 Flask-DebugToolbar 0.13.1 Flask-Login 0.5.0 Flask-Mail 0.9.1 Flask-Migrate 2.6.0 Flask-Script 2.0.6 Flask-SQLAlchemy 2.5.1 Flask-Testing 0.8.1 Flask-WTF 0.14.3 SQLAlchemy 1.4.27 Werkzeug 1.0.1 WTForms 2.3.3
π§° Expected framework structure
app_server/ βββ configuration/ βΒ Β βββ database/ βΒ Β βΒ Β βββ development_config.py βΒ Β βΒ Β βββ __init__.py βΒ Β βΒ Β βββ production_config.py βΒ Β βΒ Β βββ test_config.py βΒ Β βββ development_config.py βΒ Β βββ __init__.py βΒ Β βββ mail/ βΒ Β βΒ Β βββ development_config.py βΒ Β βΒ Β βββ __init__.py βΒ Β βΒ Β βββ production_config.py βΒ Β βΒ Β βββ test_config.py βΒ Β βββ production_config.py βΒ Β βββ test_config.py βββ forms/ βΒ Β βββ base/ βΒ Β βΒ Β βββ contact.py βΒ Β βΒ Β βββ __init__.py βΒ Β βββ __init__.py βΒ Β βββ user/ βΒ Β βββ edit.py βΒ Β βββ __init__.py βΒ Β βββ login.py βΒ Β βββ register.py βββ __init__.py βββ models/ βΒ Β βββ __init__.py βΒ Β βββ model_user.py βββ static/ βΒ Β βββ base.css βΒ Β βββ favicon.ico βββ templates/ βΒ Β βββ base/ βΒ Β βΒ Β βββ about.html βΒ Β βΒ Β βββ contact.html βΒ Β βΒ Β βββ home.html βΒ Β βββ _base.html βΒ Β βββ errors/ βΒ Β βΒ Β βββ 401.html βΒ Β βΒ Β βββ 403.html βΒ Β βΒ Β βββ 404.html βΒ Β βΒ Β βββ 500.html βΒ Β βββ footer.html βΒ Β βββ header.html βΒ Β βββ user/ βΒ Β βββ administration.html βΒ Β βββ edit.html βΒ Β βββ login.html βΒ Β βββ members.html βΒ Β βββ register.html βββ views/ βββ base/ βΒ Β βββ about.py βΒ Β βββ contact.py βΒ Β βββ home.py βΒ Β βββ __init__.py βββ __init__.py βββ user/ βββ administration.py βββ edit.py βββ __init__.py βββ login.py βββ logout.py βββ members.py βββ register.py
π More documentation and info at
Copyright (C) 2017 by vroncevic.github.io/flask_func_struct_vue
flask_func_struct_vue is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 2.x/3.x or, at your option, any later version of Python 3 you may have available.
π π π Lets help and support PSF.