/flask-init

Generate Flask project

Primary LanguagePython

flask-init

Latest Version

Generate Flask project.

Installation

~ $ python setup.py install

or can use pip

~ $ pip install flask-init

Quick start

~ $ flask-init
Input project name (default is "flask_proj"): foo
Input module name (default is "common"): bar

You can install package "pip install -r requirements/dev.txt"
You can run "python manage.py run"
~ $ tree foo
foo
├── app
│   ├── __init__.py
│   ├── bar
│   │   ├── __init__.py
│   │   ├── models.py
│   │   └── views.py
│   ├── static
│   └── templates
│       ├── base.html
│       └── bar
│           └── index.html
├── manager.py
└── requirements
    └── dev.txt
~ $ cd foo; pip install -r requirements/dev.txt
~ $ python manage.py run

ToDo

  • Support another mvc folder structure
├── app
│   ├── __init__.py
│   ├── views
│   │   ├── __init__.py
│   │   └── bar.py
│   ├── models
│   │   ├── __init__.py
│   │   └── bar.py