Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cove1205/Flask-Wow
A simple CLI Generator for flask apps.
https://github.com/cove1205/Flask-Wow
Last synced: 8 days ago
JSON representation
A simple CLI Generator for flask apps.
- Host: GitHub
- URL: https://github.com/cove1205/Flask-Wow
- Owner: cove1205
- License: bsd-3-clause
- Created: 2020-06-07T06:05:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T01:08:22.000Z (over 3 years ago)
- Last Synced: 2024-05-28T04:11:51.682Z (7 months ago)
- Language: Python
- Homepage: https://pypi.org/project/flask-wow/
- Size: 16.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.rts
Awesome Lists containing this project
- jimsghstars - cove1205/Flask-Wow - A simple CLI Generator for flask apps. (Python)
README
# **Flask-Wow**
[![Build Status](https://www.travis-ci.com/ganquan881205/Flask-Wow.svg?branch=master)](https://www.travis-ci.com/ganquan881205/Flask-Wow)
[中文文档](https://github.com/ganquan881205/Flask-Wow/blob/master/README_zh.md)
## What is Flask-Wow
Flask-Wow is a simple cli tool.
Similar to Django's built-in cli, can be used to create a new flask project or add a business module.
## Dependencies
- Python 3.6 +
- click 7.0 +## Usage
- ### Install
```bash
sudo pip3 install flask-wow
```- ### Uninstall
```bash
sudo pip3 uninstall flask-wow
```- ### Create new project
In the directory where you want to create the project, execute the create command, set 'your_ project_name' with your project name.
A '-v' or '--venv' option can tell the program to create a new python virtual environment in the project folder.
```bash
flask-wow startproject your_project_name -v
```- ### create new app
into the project folder and run the command
```bash
cd projecet_nameflask-wow startapp your_app_name
```- New project is created, the directory structure is roughly like this:
```bash
/some_folder
/your_project_name -> root folder
run.py
wsgi.py
__init__.py
config.py
handlers.py
requirements.txt
/utils
/apps
/demo -> demo folder
__init__.py
views.py
models.py
/venv -> virtual environment
```## ChangeLog
- 0.2.0 add new command to create app、refactor folder structure
- 0.1.0 project init.
## TODO
- Add Unit Test
- Complete demo examples
- optimization## Contribution
If you have any ideas or suggestions about this project,please feel free to fork、open issues and send pull requests.
Or send e-mail to [email protected]