项目作者: liranfar

项目描述 :
Some useful functionalities with flask ( python based web framework ) e.g Rest,SQLAlchemy(ORM),login,security, migrations(Alembic) etc.
高级语言: Python
项目地址: git://github.com/liranfar/Flask.git
创建时间: 2018-02-03T23:14:11Z
项目社区:https://github.com/liranfar/Flask

开源协议:GNU General Public License v3.0

下载


What is Flask?

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions. And before you ask: It’s BSD licensed!

Usage

  1. $ git clone https://github.com/liranfar/Flask.git flask
  2. $ cd flask
  3. $ sudo apt-get install pip virtualenv virtualenvwrapper
  4. $ mkvirtualenv flask
  5. $ pip install -r requirements.txt
  6. $ export FLASK_CONFIGURATION='development'
  7. $ export DATABASE_URL='<your_connection_uri>'
  8. $ python manage.py upgrade
  9. $ python seed.py
  10. $ python manage.py runserver

for de/activating virtual environment:

  1. $ workon flask
  2. $ deactivate

Front-End

  1. $ sudo npm install -g gulp bower
  2. $ npm install
  3. $ bower install
  4. $ gulp
  • Install & enable LiveReload Chrome extension
  • Make sure to disable browser caching in developer tools (checkbox)

Resources

  1. Official Documentation
  2. https://exploreflask.com/en/latest/
  3. https://www.fullstackpython.com/
  4. https://pythonhosted.org/Flask-Security/
  5. http://flask-sqlalchemy.pocoo.org/
  6. RealPython - Flask
  7. https://damyanon.net/post/flask-series-structure/
  8. https://flask-script.readthedocs.io/en/latest/
  9. React
  10. Gulp
  11. Redux
  12. soham kamani’s blog