/flask-init

Generate Flask project

Primary LanguagePythonMIT LicenseMIT

flask-init

Latest Version Documentation Status Build Status Coverage Status

Generate Flask project.

Installation

~ $ python setup.py install

or can use pip

~ $ pip install flask-init

Quick start

~ $ flask-init
> Project name [flask_proj]: foo
> Module name [common]: bar

Complete!
You can install package using pip install -r requirements/dev.txt
You can run using python manage.py run
~ $ tree foo
foo
├── app
│   ├── __init__.py
│   ├── bar
│   │   ├── __init__.py
│   │   ├── models.py
│   │   └── views.py
│   ├── static
│   └── templates
│       ├── base.html
│       └── bar
│           └── index.html
├── manage.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